Created
April 6, 2021 18:30
-
-
Save juliobguedes/8566fb162e243136142dd67559f58c30 to your computer and use it in GitHub Desktop.
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
corr = train.corr(method='spearman') | |
mask = np.zeros_like(corr) | |
mask[np.triu_indices_from(mask)] = True | |
fig, ax = plt.subplots() | |
ax.figure.set_size_inches(10, 10) | |
sns.heatmap(corr, ax=ax, annot=True, mask=mask, fmt='.2f', cbar=False, square=True, cmap=plt.cm.Blues, center=0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment