Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/populate.py
Browse files- 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 |
|