Spaces:
Runtime error
Runtime error
Commit
·
45acf22
1
Parent(s):
68cce08
Update app.py
Browse files
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 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
|
|
|
| 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)
|