Skip to content

Commit

Permalink
Update Home.py
Browse files Browse the repository at this point in the history
  • Loading branch information
thongekchakrit committed Apr 21, 2023
1 parent fdb9f5b commit 6e98ede
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Home.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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
Expand Down

0 comments on commit 6e98ede

Please sign in to comment.