Spaces:
Sleeping
Sleeping
Update eda.py
Browse files
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 =
|
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)
|