Spaces:
Runtime error
Runtime error
fix sorting
Browse files- src/populate.py +1 -0
src/populate.py
CHANGED
|
@@ -14,6 +14,7 @@ def get_leaderboard_df(results_path: str) -> pd.DataFrame:
|
|
| 14 |
|
| 15 |
df = pd.DataFrame.from_records(all_data_json)
|
| 16 |
df = df.round(decimals=2)
|
|
|
|
| 17 |
return raw_data, df
|
| 18 |
|
| 19 |
|
|
|
|
| 14 |
|
| 15 |
df = pd.DataFrame.from_records(all_data_json)
|
| 16 |
df = df.round(decimals=2)
|
| 17 |
+
df = df.sort_values(by='Average ⬆️', ascending=False)
|
| 18 |
return raw_data, df
|
| 19 |
|
| 20 |
|