Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,9 @@ expander.write('''
|
|
19 |
**How to Use:**
|
20 |
Upload your file first. Select two different columns from your data to visualize in a tree map. Then, type your question into the text area provided and click the 'Retrieve your answer' button.
|
21 |
|
|
|
|
|
|
|
22 |
**Usage Limits:**
|
23 |
You can ask up to 5 questions.
|
24 |
|
@@ -70,7 +73,8 @@ if upload_file is not None:
|
|
70 |
|
71 |
all_columns = df_original.columns.tolist()
|
72 |
st.divider()
|
73 |
-
st.write("Select columns from your data to visualize it in a Tree
|
|
|
74 |
parent_column = st.selectbox("Select the parent column:", all_columns)
|
75 |
value_column = st.selectbox("Select the value column:", all_columns)
|
76 |
|
@@ -83,7 +87,7 @@ if upload_file is not None:
|
|
83 |
fig = px.treemap(df_treemap,
|
84 |
path=path_columns)
|
85 |
fig.update_layout(margin=dict(t=50, l=25, r=25, b=25))
|
86 |
-
st.subheader("Tree
|
87 |
st.plotly_chart(fig)
|
88 |
|
89 |
st.subheader("Uploaded File", divider="blue")
|
|
|
19 |
**How to Use:**
|
20 |
Upload your file first. Select two different columns from your data to visualize in a tree map. Then, type your question into the text area provided and click the 'Retrieve your answer' button.
|
21 |
|
22 |
+
**Tree Map**
|
23 |
+
Your uploaded data is presented in an interactive Tree Map for visual exploration. Click on any area within the map to access specific data insights.
|
24 |
+
|
25 |
**Usage Limits:**
|
26 |
You can ask up to 5 questions.
|
27 |
|
|
|
73 |
|
74 |
all_columns = df_original.columns.tolist()
|
75 |
st.divider()
|
76 |
+
st.write("Select columns from your data to visualize it in a **Tree Map**")
|
77 |
+
|
78 |
parent_column = st.selectbox("Select the parent column:", all_columns)
|
79 |
value_column = st.selectbox("Select the value column:", all_columns)
|
80 |
|
|
|
87 |
fig = px.treemap(df_treemap,
|
88 |
path=path_columns)
|
89 |
fig.update_layout(margin=dict(t=50, l=25, r=25, b=25))
|
90 |
+
st.subheader("Tree Map", divider="blue")
|
91 |
st.plotly_chart(fig)
|
92 |
|
93 |
st.subheader("Uploaded File", divider="blue")
|