Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -108,8 +108,8 @@ def update_leaderboard(selected_methods, selected_metrics):
|
|
108 |
styler = (
|
109 |
df
|
110 |
.style
|
|
|
111 |
.applymap(style_method, subset=["Method"]) # text colours
|
112 |
-
.apply(highlight_top5, axis=0) # green shades
|
113 |
.format(precision=4) # keep tidy numbers
|
114 |
)
|
115 |
|
@@ -256,8 +256,8 @@ with block:
|
|
256 |
styler = (
|
257 |
baseline_value
|
258 |
.style
|
|
|
259 |
.applymap(style_method, subset=["Method"]) # text colours
|
260 |
-
.apply(highlight_top5, axis=0) # green shades
|
261 |
.format(precision=4) # keep tidy numbers
|
262 |
)
|
263 |
|
|
|
108 |
styler = (
|
109 |
df
|
110 |
.style
|
111 |
+
.apply(highlight_top5, axis=0, subset=numeric_cols) # green shades
|
112 |
.applymap(style_method, subset=["Method"]) # text colours
|
|
|
113 |
.format(precision=4) # keep tidy numbers
|
114 |
)
|
115 |
|
|
|
256 |
styler = (
|
257 |
baseline_value
|
258 |
.style
|
259 |
+
.apply(highlight_top5, axis=0, subset=numeric_cols) # green shades
|
260 |
.applymap(style_method, subset=["Method"]) # text colours
|
|
|
261 |
.format(precision=4) # keep tidy numbers
|
262 |
)
|
263 |
|