Skip to content

Instantly share code, notes, and snippets.

@elmotec
Created August 28, 2016 02:49
Show Gist options
  • Save elmotec/0b0a5fed96d66989ae73b864f20d22c9 to your computer and use it in GitHub Desktop.
Save elmotec/0b0a5fed96d66989ae73b864f20d22c9 to your computer and use it in GitHub Desktop.
sns.set(style='whitegrid', context='notebook', font_scale=1.5)
cm = np.corrcoef(df[cols].values.T)
hm = sns.heatmap(cm, cbar=True, annot=True, square=True, fmt='.2f',
annot_kws={'size': 15}, yticklabels=cols, xticklabels=cols)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment