Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -294,7 +294,8 @@ styled_table = dataset_comparison1.style.set_properties(
|
|
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 =
|
|
|
298 |
table_div_1 = Div(NotStr(table_html), style="margin: 40px;")
|
299 |
|
300 |
dataset_comparison2 = pd.DataFrame(
|
@@ -379,7 +380,8 @@ styled_table = dataset_comparison1.style.set_properties(
|
|
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 |
-
|
|
|
383 |
table_div_2 = Div(NotStr(table_html2), style="margin: 40px;")
|
384 |
|
385 |
dataset_sources = pd.DataFrame(
|
@@ -443,7 +445,8 @@ 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 |
-
|
|
|
447 |
table_div_data = Div(NotStr(table_html_data), style="margin: 40px;")
|
448 |
|
449 |
|
|
|
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 = styled_table.render()
|
298 |
+
# table_html = dataset_comparison1.to_html(index=False, border=0)
|
299 |
table_div_1 = Div(NotStr(table_html), style="margin: 40px;")
|
300 |
|
301 |
dataset_comparison2 = pd.DataFrame(
|
|
|
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 |
+
table_html = styled_table.render()
|
384 |
+
# table_html2 = dataset_comparison2.to_html(index=False, border=0)
|
385 |
table_div_2 = Div(NotStr(table_html2), style="margin: 40px;")
|
386 |
|
387 |
dataset_sources = pd.DataFrame(
|
|
|
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 |
+
table_html = styled_table.render()
|
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 |
|
452 |
|