CarisMu commited on
Commit
3f67a06
1 Parent(s): 58a867d
Files changed (1) hide show
  1. main.py +6 -9
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.set_properties(
499
- **{"background-color": "#E1EEDB"}, # Set col 1 with a green background
500
- subset=pd.IndexSlice[:, 0], # Apply green to all rows of column 1
501
  )
502
- .apply(
503
- lambda x: [
504
- "background-color: white" # White background for other columns
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
  )