sh1gechan commited on
Commit
5cd8dec
·
verified ·
1 Parent(s): 428ab42

Update src/populate.py

Browse files
Files changed (1) hide show
  1. src/populate.py +6 -0
src/populate.py CHANGED
@@ -35,6 +35,12 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
35
 
36
  # filter out if any of the benchmarks have not been produced
37
  df = df[has_no_nan_values(df, benchmark_cols)]
 
 
 
 
 
 
38
  return df
39
 
40
 
 
35
 
36
  # filter out if any of the benchmarks have not been produced
37
  df = df[has_no_nan_values(df, benchmark_cols)]
38
+ df = df.loc[:, ~df.columns.duplicated()]
39
+ print("Columns in leaderboard_df:")
40
+ print(df.columns)
41
+ print("\nSample data:")
42
+ print(df.head())
43
+ print(f"\nTotal rows: {len(df)}")
44
  return df
45
 
46