nlpblogs commited on
Commit
bc4da34
·
verified ·
1 Parent(s): 8ed9f21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -103,9 +103,9 @@ if upload_file is not None:
103
  parent_column = st.selectbox("Select the parent column:", all_columns)
104
  value_column = st.selectbox("Select the value column:", all_columns)
105
 
106
- if parent_column and value_column:
107
- if parent_column == value_column:
108
- st.warning("Warning: You have selected the same column for both the parent and value. This might not produce a meaningful treemap.")
109
  elif parent_column and value_column:
110
  path_columns = [px.Constant("all"), parent_column, value_column]
111
  fig = px.treemap(df,
 
103
  parent_column = st.selectbox("Select the parent column:", all_columns)
104
  value_column = st.selectbox("Select the value column:", all_columns)
105
 
106
+ if parent_column and value_column:
107
+ if parent_column == value_column:
108
+ st.warning("Warning: You have selected the same column for both the parent and value. This might not produce a meaningful treemap.")
109
  elif parent_column and value_column:
110
  path_columns = [px.Constant("all"), parent_column, value_column]
111
  fig = px.treemap(df,