Skip to content

Instantly share code, notes, and snippets.

@sgsg704
Created August 24, 2021 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgsg704/b07218222df39faf671dbd454d99abdf to your computer and use it in GitHub Desktop.
Save sgsg704/b07218222df39faf671dbd454d99abdf to your computer and use it in GitHub Desktop.
# Correlation amongst numeric attributes
plt.figure(figsize=(10,10))
corrmat = data.corr()
cmap = sns.diverging_palette(260,-10,s=50, l=75, n=6, as_cmap=True)
plt.subplots(figsize=(18,18))
sns.heatmap(corrmat,cmap= cmap,annot=True, square=True,fmt="%")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment