trohith89 commited on
Commit
b09f66d
·
verified ·
1 Parent(s): c54b001

Update pages/3_EDA_and_Feature_Engineering.py

Browse files
pages/3_EDA_and_Feature_Engineering.py CHANGED
@@ -180,9 +180,10 @@ if df is not None:
180
 
181
  - 1: Purchase --> 56.6%''')
182
 
183
- st.write("## **Bivariate and MultivariateAnalysis**")
184
  st.write("### Ploting Each Variable Against Target Variable")
185
  import matplotlib.patches as mpatches
 
186
  # Exclude the specific columns for histogram plotting
187
  columns_to_exclude = ['ProductID', 'age_bins', 'ProductPriceBucket', 'PurchaseFrequency', 'CustomerAge', 'PurchaseIntent']
188
  df_filtered = df.drop(columns=columns_to_exclude)
@@ -404,3 +405,7 @@ if df is not None:
404
  - -1: Perfect negative correlation (as one variable increases, the other decreases)
405
  - 0: No correlation (the variables are independent)
406
  - 1: Perfect positive correlation (as one variable increases, the other increases)''')
 
 
 
 
 
180
 
181
  - 1: Purchase --> 56.6%''')
182
 
183
+ st.write("## **Bivariate and MultivariateAnalysis**")
184
  st.write("### Ploting Each Variable Against Target Variable")
185
  import matplotlib.patches as mpatches
186
+
187
  # Exclude the specific columns for histogram plotting
188
  columns_to_exclude = ['ProductID', 'age_bins', 'ProductPriceBucket', 'PurchaseFrequency', 'CustomerAge', 'PurchaseIntent']
189
  df_filtered = df.drop(columns=columns_to_exclude)
 
405
  - -1: Perfect negative correlation (as one variable increases, the other decreases)
406
  - 0: No correlation (the variables are independent)
407
  - 1: Perfect positive correlation (as one variable increases, the other increases)''')
408
+
409
+ else:
410
+ st.error("No dataset found. Please upload a dataset on the main page first.")
411
+