Spaces:
Runtime error
Runtime error
Commit
•
d625373
1
Parent(s):
f6889a3
Sort by reward, then by user and finally by model name (#17)
Browse files- Sort by reward, then by user and finally by model name (efdf714b289157a0304b7a2511f6597770f990a1)
Co-authored-by: Omar Sanseviero <osanseviero@users.noreply.huggingface.co>
app.py
CHANGED
@@ -255,7 +255,7 @@ def get_data_no_html(rl_env, path) -> pd.DataFrame:
|
|
255 |
return data
|
256 |
|
257 |
def rank_dataframe(dataframe):
|
258 |
-
dataframe = dataframe.sort_values(by=['Results'], ascending=False)
|
259 |
if not 'Ranking' in dataframe.columns:
|
260 |
dataframe.insert(0, 'Ranking', [i for i in range(1,len(dataframe)+1)])
|
261 |
else:
|
|
|
255 |
return data
|
256 |
|
257 |
def rank_dataframe(dataframe):
|
258 |
+
dataframe = dataframe.sort_values(by=['Results', 'User', 'Model'], ascending=False)
|
259 |
if not 'Ranking' in dataframe.columns:
|
260 |
dataframe.insert(0, 'Ranking', [i for i in range(1,len(dataframe)+1)])
|
261 |
else:
|