djstrong commited on
Commit
3ad0620
1 Parent(s): acb5f2e
Files changed (1) hide show
  1. src/populate.py +3 -2
src/populate.py CHANGED
@@ -18,8 +18,9 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
18
  df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
19
  df = df[cols].round(decimals=2)
20
 
21
- # add column rank to pd.DataFrame df
22
- df.insert(0, "rank", df[AutoEvalColumn.average.name].rank(ascending=False, method="min"), True)
 
23
 
24
  # filter out if any of the benchmarks have not been produced
25
  #df2 = df[has_no_nan_values(df, benchmark_cols)]
 
18
  df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
19
  df = df[cols].round(decimals=2)
20
 
21
+ # set column rank to pd.DataFrame df
22
+ df['rank'] = df[AutoEvalColumn.average.name].rank(ascending=False, method="min")
23
+ # df.insert(0, "rank", df[AutoEvalColumn.average.name].rank(ascending=False, method="min"), True)
24
 
25
  # filter out if any of the benchmarks have not been produced
26
  #df2 = df[has_no_nan_values(df, benchmark_cols)]