Spaces:
Running
Running
Andrea Seveso
commited on
Commit
•
315c005
1
Parent(s):
f1345f3
Change rounding method
Browse files
app.py
CHANGED
@@ -135,8 +135,8 @@ def get_macro_area_data():
|
|
135 |
columns = ['Model', 'LI (108)', 'RM (179)', 'RC (33)', 'WF (7)',
|
136 |
'LS (29)', ' MO (24)', 'SP (4)', 'SY (19)', 'TP (6)']
|
137 |
dataset.columns = columns
|
|
|
138 |
dataset = dataset.style.highlight_max(color='lightgreen', axis=0)
|
139 |
-
dataset = dataset.style.format("{:.1f}")
|
140 |
return dataset
|
141 |
|
142 |
|
@@ -150,9 +150,9 @@ def get_question_format_data():
|
|
150 |
dataset = dataset.iloc[2:]
|
151 |
columns[0] = 'Model'
|
152 |
dataset.columns = columns
|
|
|
153 |
|
154 |
dataset = dataset.style.highlight_max(color='lightgreen', axis=0)
|
155 |
-
dataset = dataset.style.format("{:.1f}")
|
156 |
return dataset
|
157 |
|
158 |
|
|
|
135 |
columns = ['Model', 'LI (108)', 'RM (179)', 'RC (33)', 'WF (7)',
|
136 |
'LS (29)', ' MO (24)', 'SP (4)', 'SY (19)', 'TP (6)']
|
137 |
dataset.columns = columns
|
138 |
+
dataset = dataset.round(1)
|
139 |
dataset = dataset.style.highlight_max(color='lightgreen', axis=0)
|
|
|
140 |
return dataset
|
141 |
|
142 |
|
|
|
150 |
dataset = dataset.iloc[2:]
|
151 |
columns[0] = 'Model'
|
152 |
dataset.columns = columns
|
153 |
+
dataset = dataset.round(1)
|
154 |
|
155 |
dataset = dataset.style.highlight_max(color='lightgreen', axis=0)
|
|
|
156 |
return dataset
|
157 |
|
158 |
|