Spaces:
Running
Running
fix error
Browse files
main.py
CHANGED
@@ -495,16 +495,13 @@ new_dataset_comparison1 = pd.DataFrame(
|
|
495 |
# ) # Hide the row index
|
496 |
|
497 |
styled_table = (
|
498 |
-
new_dataset_comparison1.style.
|
499 |
-
|
500 |
-
subset=pd.IndexSlice[:, 0]
|
501 |
)
|
502 |
-
.
|
503 |
-
lambda
|
504 |
-
|
505 |
-
for _ in range(len(x))
|
506 |
-
],
|
507 |
-
axis=1,
|
508 |
)
|
509 |
.hide(axis="index") # Hide the row index
|
510 |
)
|
|
|
495 |
# ) # Hide the row index
|
496 |
|
497 |
styled_table = (
|
498 |
+
new_dataset_comparison1.style.applymap(
|
499 |
+
lambda _: "background-color: #E1EEDB", # Green background for col 1
|
500 |
+
subset=pd.IndexSlice[:, 0] # Apply to the first column
|
501 |
)
|
502 |
+
.applymap(
|
503 |
+
lambda _: "background-color: white", # White background for all other columns
|
504 |
+
subset=pd.IndexSlice[:, 1:] # Apply to all columns except the first
|
|
|
|
|
|
|
505 |
)
|
506 |
.hide(axis="index") # Hide the row index
|
507 |
)
|