Last active
June 30, 2022 06:20
-
-
Save AayushSameerShah/75011c56970c31947f1b9d90cea806bf to your computer and use it in GitHub Desktop.
This will make a mask for heatmap. (TRIANGLE HEATMAP)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plt.figure(figsize=(10, 6)) | |
corr = df.corr() | |
mask = np.zeros_like(corr) | |
mask[np.triu_indices_from(mask)] = True | |
sns.heatmap(corr, mask=mask, square=True, cmap="Blues") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment