Andrea Seveso commited on
Commit
f574033
1 Parent(s): 7d1c3f5

test multi column

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -131,13 +131,20 @@ def filter_models(
131
 
132
  def get_macro_area_data():
133
  dataset = pd.read_csv("src/macro_area.csv", sep=',')
134
- dataset = dataset.style.highlight_max(color='lightgreen', axis=0)
135
  return dataset
136
 
137
 
138
  def get_question_format_data():
139
  dataset = pd.read_csv("src/question_format.csv", sep=',')
140
- dataset = dataset.style.highlight_max(color='lightgreen', axis=0)
 
 
 
 
 
 
 
141
  return dataset
142
 
143
 
 
131
 
132
  def get_macro_area_data():
133
  dataset = pd.read_csv("src/macro_area.csv", sep=',')
134
+ # dataset = dataset.style.highlight_max(color='lightgreen', axis=0)
135
  return dataset
136
 
137
 
138
  def get_question_format_data():
139
  dataset = pd.read_csv("src/question_format.csv", sep=',')
140
+ top_level_headers = dataset.iloc[0]
141
+ second_level_headers = dataset.columns
142
+ multi_index = pd.MultiIndex.from_tuples(
143
+ zip(top_level_headers, second_level_headers))
144
+ dataset = dataset.iloc[1:]
145
+ dataset.columns = multi_index
146
+
147
+ # dataset = dataset.style.highlight_max(color='lightgreen', axis=0)
148
  return dataset
149
 
150