Spaces:
Sleeping
Sleeping
Update src/saving_utils.py
Browse files- src/saving_utils.py +2 -2
src/saving_utils.py
CHANGED
@@ -15,8 +15,8 @@ def get_baseline_df(selected_methods, selected_metrics, leaderboard_path="/tmp/l
|
|
15 |
leaderboard_df = pd.read_csv(leaderboard_path)
|
16 |
|
17 |
if selected_methods is not None and selected_metrics is not None:
|
18 |
-
present_columns = ["
|
19 |
-
leaderboard_df = leaderboard_df[leaderboard_df['
|
20 |
return leaderboard_df
|
21 |
|
22 |
|
|
|
15 |
leaderboard_df = pd.read_csv(leaderboard_path)
|
16 |
|
17 |
if selected_methods is not None and selected_metrics is not None:
|
18 |
+
present_columns = ["Method"] + selected_metrics
|
19 |
+
leaderboard_df = leaderboard_df[leaderboard_df['Method'].isin(selected_methods)][present_columns]
|
20 |
return leaderboard_df
|
21 |
|
22 |
|