Skip to content

Instantly share code, notes, and snippets.

@notha99y
Created December 30, 2019 08:35
Show Gist options
  • Save notha99y/95262579cef696f6c523e3570ebb7af3 to your computer and use it in GitHub Desktop.
Save notha99y/95262579cef696f6c523e3570ebb7af3 to your computer and use it in GitHub Desktop.
plt.figure(figsize=(14,12))
plt.title('Pearson Correlation of Features', size = 15)
colormap = sns.diverging_palette(10, 220, as_cmap = True)
sns.heatmap(corr_df.corr(),
cmap = colormap,
square = True,
annot = True,
linewidths=0.1,vmax=1.0, linecolor='white',
annot_kws={'fontsize':12 })
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment