trohith89 commited on
Commit
d4ef716
·
verified ·
1 Parent(s): 419bb0b

Update pages/3_EDA_and_Feature_Engineering.py

Browse files
pages/3_EDA_and_Feature_Engineering.py CHANGED
@@ -332,9 +332,11 @@ if 'df' in st.session_state:
332
 
333
  import matplotlib.pyplot as plt
334
  # correlation matrix and heatmap
335
- corr = df.corr()
 
336
  plt.figure(figsize=(20, 10))
337
  sns.heatmap(corr, annot=True)
 
338
  plt.title('Correlation Matrix')
339
  plt.show()
340
 
 
332
 
333
  import matplotlib.pyplot as plt
334
  # correlation matrix and heatmap
335
+ # corr = df.corr()
336
+ corr = df[numeric_columns].corr()
337
  plt.figure(figsize=(20, 10))
338
  sns.heatmap(corr, annot=True)
339
+
340
  plt.title('Correlation Matrix')
341
  plt.show()
342