Skip to content

Commit

Permalink
add fourth tab
Browse files Browse the repository at this point in the history
  • Loading branch information
sprivite committed Jul 8, 2024
1 parent fed3aad commit 3cb4bf7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand All @@ -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 = []
Expand Down Expand Up @@ -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)

0 comments on commit 3cb4bf7

Please sign in to comment.