Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -249,8 +249,11 @@ elif page == "Data Visualization":
|
|
| 249 |
|
| 250 |
corr_matrix = df[['Age', 'Income', 'Browsing_Time', 'Product_Views', 'Past_Purchases', 'Purchase_Probability']].corr()
|
| 251 |
|
| 252 |
-
fig = px.imshow(
|
| 253 |
-
|
|
|
|
|
|
|
|
|
|
| 254 |
st.plotly_chart(fig, use_container_width=True)
|
| 255 |
|
| 256 |
elif chart_type == "Category-wise Purchase Trends":
|
|
|
|
| 249 |
|
| 250 |
corr_matrix = df[['Age', 'Income', 'Browsing_Time', 'Product_Views', 'Past_Purchases', 'Purchase_Probability']].corr()
|
| 251 |
|
| 252 |
+
fig = px.imshow(
|
| 253 |
+
corr_matrix,
|
| 254 |
+
color_continuous_scale='blues',
|
| 255 |
+
title="Correlation Heatmap of Features",
|
| 256 |
+
labels=dict(color="Correlation"),)
|
| 257 |
st.plotly_chart(fig, use_container_width=True)
|
| 258 |
|
| 259 |
elif chart_type == "Category-wise Purchase Trends":
|