Update space
Browse files- src/populate.py +3 -2
src/populate.py
CHANGED
@@ -31,9 +31,10 @@ def get_model_leaderboard_df(results_path: str, requests_path: str="", cols: lis
|
|
31 |
|
32 |
for col in benchmark_cols:
|
33 |
# print(col)
|
|
|
34 |
if 'Std dev' in col or 'Score' in col:
|
35 |
-
df[col] = df[col]*100
|
36 |
-
df[col] = df[col].round(decimals=2)
|
37 |
|
38 |
# df = df.sort_values(by=[AutoEvalColumn.score.name], ascending=True)
|
39 |
# df[AutoEvalColumn.rank.name] = df[AutoEvalColumn.score.name].rank(ascending=True, method="min")
|
|
|
31 |
|
32 |
for col in benchmark_cols:
|
33 |
# print(col)
|
34 |
+
# if 'Std dev' in col or 'Score' in col:
|
35 |
if 'Std dev' in col or 'Score' in col:
|
36 |
+
df[col] = (df[col]*100).map('{:.2f}'.format)
|
37 |
+
# df[col] = df[col].round(decimals=2)
|
38 |
|
39 |
# df = df.sort_values(by=[AutoEvalColumn.score.name], ascending=True)
|
40 |
# df[AutoEvalColumn.rank.name] = df[AutoEvalColumn.score.name].rank(ascending=True, method="min")
|