trohith89 commited on
Commit
382d490
·
verified ·
1 Parent(s): 1d6729a

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, ax = plt.subplots(figsize=(10, 6))
89
- sns.countplot(x='Category', data=df, palette='viridis', ax=ax)
90
- ax.set_title("Product Category Distribution")
91
- ax.set_xlabel("Product Category")
92
- ax.set_ylabel("Count")
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 :**