CarisMu commited on
Commit
ae7225f
1 Parent(s): 0e10a03

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
main.py CHANGED
@@ -289,9 +289,9 @@ dataset_comparison1 = pd.DataFrame(
289
 
290
  # Apply table styling: Light green for the header, alternating white and light grey for rows
291
  styled_table = dataset_comparison1.style.set_properties(
292
- **{'background-color': '#E1EEDB'}, subset=pd.IndexSlice[0,:] # Row 0 with a light yellow background
293
  ).apply(
294
- lambda x: ['background-color: white' if i % 2 == 0 else 'background-color: rgb(237, 242, 251)' for i in range(1, len(x))],
295
  axis=0
296
  ).hide(axis="index") # Hide the row index
297
 
@@ -377,9 +377,9 @@ dataset_comparison2 = pd.DataFrame(
377
  )
378
  # Apply table styling: Light green for the header, alternating white and light grey for rows
379
  styled_table = dataset_comparison2.style.set_properties(
380
- **{'background-color': '#E1EEDB'}, subset=pd.IndexSlice[0,:] # Row 0 with a light yellow background
381
  ).apply(
382
- lambda x: ['background-color: white' if i % 2 == 0 else 'background-color: rgb(237, 242, 251)' for i in range(1, len(x))],
383
  axis=0
384
  ).hide(axis="index") # Hide the row index
385
 
 
289
 
290
  # Apply table styling: Light green for the header, alternating white and light grey for rows
291
  styled_table = dataset_comparison1.style.set_properties(
292
+ **{'background-color': '#E1EEDB'}, subset=pd.IndexSlice[0,:] # Row 0 with a light green background
293
  ).apply(
294
+ lambda x: ['background-color: #E1EEDB' if i == 0 else ('background-color: white' if i % 2 == 0 else 'background-color: rgb(237, 242, 251)') for i in range(len(x))],
295
  axis=0
296
  ).hide(axis="index") # Hide the row index
297
 
 
377
  )
378
  # Apply table styling: Light green for the header, alternating white and light grey for rows
379
  styled_table = dataset_comparison2.style.set_properties(
380
+ **{'background-color': '#E1EEDB'}, subset=pd.IndexSlice[0,:] # Row 0 with a light green background
381
  ).apply(
382
+ lambda x: ['background-color: #E1EEDB' if i == 0 else ('background-color: white' if i % 2 == 0 else 'background-color: rgb(237, 242, 251)') for i in range(len(x))],
383
  axis=0
384
  ).hide(axis="index") # Hide the row index
385