Spaces:
Runtime error
Runtime error
Aaron Mueller
commited on
Commit
•
cde984f
1
Parent(s):
0e10c39
col fix
Browse files- src/populate.py +2 -3
src/populate.py
CHANGED
@@ -20,11 +20,10 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
|
|
20 |
all_data_json_filtered.append(item)
|
21 |
all_data_json = all_data_json_filtered
|
22 |
|
23 |
-
print("Filtered:", all_data_json, len(all_data_json))
|
24 |
df = pd.DataFrame.from_records(all_data_json)
|
25 |
print(df)
|
26 |
-
|
27 |
-
df = df[
|
28 |
|
29 |
# filter out if any of the benchmarks have not been produced
|
30 |
df = df[has_no_nan_values(df, benchmark_cols)]
|
|
|
20 |
all_data_json_filtered.append(item)
|
21 |
all_data_json = all_data_json_filtered
|
22 |
|
|
|
23 |
df = pd.DataFrame.from_records(all_data_json)
|
24 |
print(df)
|
25 |
+
df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
|
26 |
+
df = df[benchmark_cols].round(decimals=1)
|
27 |
|
28 |
# filter out if any of the benchmarks have not been produced
|
29 |
df = df[has_no_nan_values(df, benchmark_cols)]
|