From 6e98eded1cafb5b9c23053dac61625fb2cac1da0 Mon Sep 17 00:00:00 2001 From: Chakrit Thong Ek <49002416+thongekchakrit@users.noreply.github.com> Date: Fri, 21 Apr 2023 17:17:56 +0800 Subject: [PATCH] Update Home.py --- Home.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Home.py b/Home.py index 362663b..312523c 100644 --- a/Home.py +++ b/Home.py @@ -900,16 +900,16 @@ def handle_layout_change(updated_layout): ################################################# st.markdown("### Data Explaination") - # with st.expander("See data explaination"): - # get_data_overview(sample_data_overview) - # - # # Inspecting raw data - # with st.expander("See raw data"): - # get_raw_table(DATA) - # - # # Inspecting summary statistics - # with st.expander("See summary statistics"): - # get_summary_statistics(DATA) + with st.expander("See data explaination"): + get_data_overview(sample_data_overview) + + # Inspecting raw data + with st.expander("See raw data"): + get_raw_table(DATA) + + # Inspecting summary statistics + with st.expander("See summary statistics"): + get_summary_statistics(DATA) data_schema = convert_datatype(DATA) schema_data = str(data_schema.dtypes.to_dict().items()) @@ -919,12 +919,12 @@ def handle_layout_change(updated_layout): col1, col2, col3, col4, col5 = st.columns(5) # Generate 5 sample questions - # sample_question_1, sample_question_2, sample_question_3, sample_question_4, sample_question_5 = create_sample_question(schema_data, DATA) - sample_question_1 = "What us the average age of the people in the dataset?" - sample_question_2 = "What is the most common sex in the dataset?" - sample_question_3 = "What is the average BMI of the people in the dataset?" - sample_question_4 = "What is the average number of children in the dataset?" - sample_question_5 = "What is the most common region in the dataset?" + sample_question_1, sample_question_2, sample_question_3, sample_question_4, sample_question_5 = create_sample_question(schema_data, DATA) + # sample_question_1 = "What us the average age of the people in the dataset?" + # sample_question_2 = "What is the most common sex in the dataset?" + # sample_question_3 = "What is the average BMI of the people in the dataset?" + # sample_question_4 = "What is the average number of children in the dataset?" + # sample_question_5 = "What is the most common region in the dataset?" question = None # Create the sample questions columns