Update pages/3_EDA_and_Feature_Engineering.py
Browse files
pages/3_EDA_and_Feature_Engineering.py
CHANGED
|
@@ -85,11 +85,11 @@ if df is not None:
|
|
| 85 |
|
| 86 |
# Product Category Distribution
|
| 87 |
st.write("### PRODUCT CATEGORY")
|
| 88 |
-
fig,
|
| 89 |
-
sns.countplot(x='Category', data=df, palette='viridis', ax=
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
plt.xticks(rotation=45)
|
| 94 |
st.pyplot(fig)
|
| 95 |
st.markdown('''**Insights :**
|
|
|
|
| 85 |
|
| 86 |
# Product Category Distribution
|
| 87 |
st.write("### PRODUCT CATEGORY")
|
| 88 |
+
fig, axs = plt.subplots(figsize=(10, 6))
|
| 89 |
+
sns.countplot(x='Category', data=df, palette='viridis', ax=axs)
|
| 90 |
+
axs.set_title("Product Category Distribution")
|
| 91 |
+
axs.set_xlabel("Product Category")
|
| 92 |
+
axs.set_ylabel("Count")
|
| 93 |
plt.xticks(rotation=45)
|
| 94 |
st.pyplot(fig)
|
| 95 |
st.markdown('''**Insights :**
|