Update app.py
Browse files
app.py
CHANGED
|
@@ -113,4 +113,18 @@ import matplotlib.pyplot as plt
|
|
| 113 |
fig, ax = plt.subplots()
|
| 114 |
ax.scatter(df['column_x'], df['column_y'])
|
| 115 |
st.pyplot(fig)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
|
|
|
|
| 113 |
fig, ax = plt.subplots()
|
| 114 |
ax.scatter(df['column_x'], df['column_y'])
|
| 115 |
st.pyplot(fig)
|
| 116 |
+
import seaborn as sns
|
| 117 |
+
import matplotlib.pyplot as plt
|
| 118 |
+
|
| 119 |
+
# Generate a correlation matrix
|
| 120 |
+
corr = df.corr()
|
| 121 |
+
|
| 122 |
+
# Create a heatmap
|
| 123 |
+
plt.figure(figsize=(10, 8))
|
| 124 |
+
sns.heatmap(corr, annot=True, cmap='coolwarm', fmt='.2f')
|
| 125 |
+
plt.title('Correlation Heatmap')
|
| 126 |
+
|
| 127 |
+
# Display the heatmap
|
| 128 |
+
plt.show()
|
| 129 |
+
|
| 130 |
|