dnirfana commited on
Commit
99753c6
1 Parent(s): c0decd1

Update eda.py

Browse files
Files changed (1) hide show
  1. eda.py +1 -1
eda.py CHANGED
@@ -307,7 +307,7 @@ def app():
307
  # heatmap to visualize relationships
308
  st.subheader('Heatmap of Correlation between Numeric Variables')
309
  with st.spinner('Loading...'):
310
- correlation_matrix = data[['amount', 'oldbalanceOrg', 'newbalanceOrig', 'oldbalanceDest', 'newbalanceDest']].corr()
311
  fig, ax = plt.subplots(figsize=(10, 8))
312
  sns.heatmap(correlation_matrix, annot=True, cmap='coolwarm', linewidths=0.5, fmt=".2f", ax=ax)
313
  st.pyplot(fig)
 
307
  # heatmap to visualize relationships
308
  st.subheader('Heatmap of Correlation between Numeric Variables')
309
  with st.spinner('Loading...'):
310
+ correlation_matrix = df[['amount', 'oldbalanceOrg', 'newbalanceOrig', 'oldbalanceDest', 'newbalanceDest']].corr()
311
  fig, ax = plt.subplots(figsize=(10, 8))
312
  sns.heatmap(correlation_matrix, annot=True, cmap='coolwarm', linewidths=0.5, fmt=".2f", ax=ax)
313
  st.pyplot(fig)