From 3cb4bf75226be53b21abb703fdb1c5fabe81a68c Mon Sep 17 00:00:00 2001 From: Stephen Privitera Date: Mon, 8 Jul 2024 11:28:00 +0200 Subject: [PATCH] add fourth tab --- bin/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/main.py b/bin/main.py index d7e8e23..a377bdb 100644 --- a/bin/main.py +++ b/bin/main.py @@ -196,7 +196,7 @@ def load_front_page(): hue_order += list(set(matching_data.populations) - set(hue_order)) print("populations", hue_order) - tab1, tab2, tab3 = st.tabs(["Numeric", "Categoric", "SMD"]) + tab1, tab2, tab3, tab4 = st.tabs(["Numeric", "Categoric", "SMD", "Summary"]) with tab1: plot_vars = [] @@ -223,7 +223,6 @@ def load_front_page(): summary = matching_data.describe_numeric().astype("object") summary = summary[summary.index.get_level_values(0).isin(plot_vars)] st.dataframe(summary, use_container_width=True) - st.dataframe(matching_data.counts(), use_container_width=True) with tab2: plot_vars = [] @@ -260,3 +259,7 @@ def load_front_page(): # palette=palette, ) st.pyplot(categoric_fig) + + with tab4: + st.markdown(matching_data._repr_html_(), unsafe_allow_html=True) + st.dataframe(matching_data.counts(), use_container_width=True)