Update src/populate.py
Browse files- src/populate.py +1 -0
src/populate.py
CHANGED
|
@@ -19,6 +19,7 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
|
|
| 19 |
df = df[filtered_cols].round(decimals=2)
|
| 20 |
|
| 21 |
# filter out if any of the benchmarks have not been produced
|
|
|
|
| 22 |
df = df[has_no_nan_values(df, benchmark_cols)]
|
| 23 |
return df
|
| 24 |
|
|
|
|
| 19 |
df = df[filtered_cols].round(decimals=2)
|
| 20 |
|
| 21 |
# filter out if any of the benchmarks have not been produced
|
| 22 |
+
filtered_benchmark_cols = [col for col in benchmark_cols if col in df.columns]
|
| 23 |
df = df[has_no_nan_values(df, benchmark_cols)]
|
| 24 |
return df
|
| 25 |
|