CarisMu commited on
Commit
3b0452b
1 Parent(s): fd97929

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -7
main.py CHANGED
@@ -291,10 +291,9 @@ dataset_comparison1 = pd.DataFrame(
291
  styled_table = dataset_comparison1.style.set_properties(
292
  **{'background-color': 'rgb(234, 255, 241)'}, subset=pd.IndexSlice[0,:]
293
  ).apply(
294
- lambda x: ['background-color: white' if i % 2 == 0 else 'background-color': 'rgb(237, 242, 251)' for i in range(len(x))],
295
  axis=0
296
  )
297
- styled_table
298
  table_html = dataset_comparison1.to_html(index=False, border=0)
299
  table_div_1 = Div(NotStr(table_html), style="margin: 40px;")
300
 
@@ -374,13 +373,12 @@ dataset_comparison2 = pd.DataFrame(
374
  }
375
  )
376
  # Apply table styling: Light green for the header, alternating white and light grey for rows
377
- styled_table = dataset_comparison2.style.set_properties(
378
  **{'background-color': 'rgb(234, 255, 241)'}, subset=pd.IndexSlice[0,:]
379
  ).apply(
380
- lambda x: ['background-color: white' if i % 2 == 0 else 'background-color': 'rgb(237, 242, 251)' for i in range(len(x))],
381
  axis=0
382
  )
383
- styled_table
384
  table_html2 = dataset_comparison2.to_html(index=False, border=0)
385
  table_div_2 = Div(NotStr(table_html2), style="margin: 40px;")
386
 
@@ -442,10 +440,9 @@ dataset_sources = pd.DataFrame(
442
  )
443
  # Apply table styling: Light green for the header, alternating white and light grey for rows
444
  styled_table = dataset_comparison1.style.apply(
445
- lambda x: ['background-color: white' if i % 2 == 0 else 'background-color': 'rgb(237, 242, 251)' for i in range(len(x))],
446
  axis=0
447
  )
448
- styled_table
449
  table_html_data = dataset_sources.to_html(index=False, border=0)
450
  table_div_data = Div(NotStr(table_html_data), style="margin: 40px;")
451
 
 
291
  styled_table = dataset_comparison1.style.set_properties(
292
  **{'background-color': 'rgb(234, 255, 241)'}, subset=pd.IndexSlice[0,:]
293
  ).apply(
294
+ lambda x: ['background-color: white' if i % 2 == 0 else 'background-color: rgb(237, 242, 251)' for i in range(len(x))],
295
  axis=0
296
  )
 
297
  table_html = dataset_comparison1.to_html(index=False, border=0)
298
  table_div_1 = Div(NotStr(table_html), style="margin: 40px;")
299
 
 
373
  }
374
  )
375
  # Apply table styling: Light green for the header, alternating white and light grey for rows
376
+ styled_table = dataset_comparison1.style.set_properties(
377
  **{'background-color': 'rgb(234, 255, 241)'}, subset=pd.IndexSlice[0,:]
378
  ).apply(
379
+ lambda x: ['background-color: white' if i % 2 == 0 else 'background-color: rgb(237, 242, 251)' for i in range(len(x))],
380
  axis=0
381
  )
 
382
  table_html2 = dataset_comparison2.to_html(index=False, border=0)
383
  table_div_2 = Div(NotStr(table_html2), style="margin: 40px;")
384
 
 
440
  )
441
  # Apply table styling: Light green for the header, alternating white and light grey for rows
442
  styled_table = dataset_comparison1.style.apply(
443
+ lambda x: ['background-color: white' if i % 2 == 0 else 'background-color: rgb(237, 242, 251)' for i in range(len(x))],
444
  axis=0
445
  )
 
446
  table_html_data = dataset_sources.to_html(index=False, border=0)
447
  table_div_data = Div(NotStr(table_html_data), style="margin: 40px;")
448