sh1gechan commited on
Commit
321e9aa
·
verified ·
1 Parent(s): dd67828

Update src/populate.py

Browse files
Files changed (1) hide show
  1. src/populate.py +2 -11
src/populate.py CHANGED
@@ -35,17 +35,8 @@ 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
- 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
- print(f"\nColumn dtypes:")
45
- print(df.dtypes)
46
- df = df.rename(columns={'Type_Symbol': 'T'})
47
- print("Leaderboard DataFrame columns after preparation:")
48
- print(df.columns.tolist())
49
 
50
  return df
51
 
 
35
 
36
  # filter out if any of the benchmarks have not been produced
37
  df = df[has_no_nan_values(df, benchmark_cols)]
38
+ print(f"Final leaderboard DataFrame:\n{df.head()}")
39
+ print(f"DataFrame shape: {df.shape}")
 
 
 
 
 
 
 
 
 
40
 
41
  return df
42