Spaces:
Running
Running
Kung-Hsiang Huang
commited on
Commit
·
eb11dfa
1
Parent(s):
5765510
fix format
Browse files- app.py +1 -1
- src/populate.py +2 -2
app.py
CHANGED
@@ -56,8 +56,8 @@ def update_table(
|
|
56 |
|
57 |
df = select_columns(filtered_df, columns)
|
58 |
|
|
|
59 |
|
60 |
-
|
61 |
return df.style.map(highlight_cost_band_low, props="background-color: #b3d5a4")
|
62 |
|
63 |
|
|
|
56 |
|
57 |
df = select_columns(filtered_df, columns)
|
58 |
|
59 |
+
df = df.round(decimals=1)
|
60 |
|
|
|
61 |
return df.style.map(highlight_cost_band_low, props="background-color: #b3d5a4")
|
62 |
|
63 |
|
src/populate.py
CHANGED
@@ -10,7 +10,7 @@ def get_leaderboard_df_crm(
|
|
10 |
) -> tuple[pd.DataFrame, pd.DataFrame]:
|
11 |
"""Creates a dataframe from all the individual experiment results"""
|
12 |
model_performance_df = pd.read_csv(os.path.join(crm_results_path, "all_results.csv"))
|
13 |
-
|
14 |
-
model_performance_df = model_performance_df[cols].round(decimals=2)
|
15 |
model_performance_df = model_performance_df.sort_values("Overall ⬆️", ascending=False)
|
|
|
|
|
16 |
return model_performance_df
|
|
|
10 |
) -> tuple[pd.DataFrame, pd.DataFrame]:
|
11 |
"""Creates a dataframe from all the individual experiment results"""
|
12 |
model_performance_df = pd.read_csv(os.path.join(crm_results_path, "all_results.csv"))
|
|
|
|
|
13 |
model_performance_df = model_performance_df.sort_values("Overall ⬆️", ascending=False)
|
14 |
+
model_performance_df = model_performance_df[cols].round(decimals=1)
|
15 |
+
print(model_performance_df)
|
16 |
return model_performance_df
|