ceckenrode commited on
Commit
45acf22
·
1 Parent(s): 68cce08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -156,12 +156,12 @@ if uploaded_file is not None:
156
  fig = px.treemap(df, path=categorical_cols)
157
  st.plotly_chart(fig)
158
 
159
- #if len(numerical_cols) >= 2:
160
- # fig = px.scatter_matrix(df, dimensions=numerical_cols)
161
- # st.plotly_chart(fig)
162
- #elif len(categorical_cols) >= 2:
163
- # fig = px.treemap(df, path=categorical_cols)
164
- # st.plotly_chart(fig)
165
- #else:
166
- # fig = px.sunburst(df, path=categorical_cols + numerical_cols)
167
- # st.plotly_chart(fig)
 
156
  fig = px.treemap(df, path=categorical_cols)
157
  st.plotly_chart(fig)
158
 
159
+ if len(numerical_cols) >= 2:
160
+ fig = px.scatter_matrix(df, dimensions=numerical_cols)
161
+ st.plotly_chart(fig)
162
+ elif len(categorical_cols) >= 2:
163
+ fig = px.treemap(df, path=categorical_cols)
164
+ st.plotly_chart(fig)
165
+ else:
166
+ fig = px.sunburst(df, path=categorical_cols + numerical_cols)
167
+ st.plotly_chart(fig)