Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
alozowski
commited on
Commit
•
fb35a84
1
Parent(s):
f3aa422
fix round columns
Browse files- src/populate.py +0 -1
- src/tools/plots.py +4 -4
src/populate.py
CHANGED
@@ -49,6 +49,5 @@ def get_leaderboard_df(leaderboard_dataset: Dataset, cols: list, benchmark_cols:
|
|
49 |
|
50 |
df = pd.DataFrame.from_records(all_data_json_list)
|
51 |
df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
|
52 |
-
df = df[cols].round(decimals=2)
|
53 |
df = df[has_no_nan_values(df, benchmark_cols)]
|
54 |
return df
|
|
|
49 |
|
50 |
df = pd.DataFrame.from_records(all_data_json_list)
|
51 |
df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
|
|
|
52 |
df = df[has_no_nan_values(df, benchmark_cols)]
|
53 |
return df
|
src/tools/plots.py
CHANGED
@@ -71,10 +71,10 @@ def create_plot_df(scores_df: dict[str : pd.DataFrame]) -> pd.DataFrame:
|
|
71 |
# Concatenate all the created DataFrames
|
72 |
concat_df = pd.concat(dfs, ignore_index=True)
|
73 |
|
74 |
-
# Sort values by 'date'
|
75 |
-
concat_df.sort_values(by="date", inplace=True)
|
76 |
-
concat_df.reset_index(drop=True, inplace=True)
|
77 |
-
return concat_df
|
78 |
|
79 |
|
80 |
def create_metric_plot_obj(df: pd.DataFrame, metrics: list[str], title: str) -> Figure:
|
|
|
71 |
# Concatenate all the created DataFrames
|
72 |
concat_df = pd.concat(dfs, ignore_index=True)
|
73 |
|
74 |
+
# # Sort values by 'date'
|
75 |
+
# concat_df.sort_values(by="date", inplace=True)
|
76 |
+
# concat_df.reset_index(drop=True, inplace=True)
|
77 |
+
# return concat_df
|
78 |
|
79 |
|
80 |
def create_metric_plot_obj(df: pd.DataFrame, metrics: list[str], title: str) -> Figure:
|