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