Skip to content

Instantly share code, notes, and snippets.

@VincentTatan
Last active May 3, 2020 03:23
Show Gist options
  • Save VincentTatan/a48471a7716375934f38c0072e3a4434 to your computer and use it in GitHub Desktop.
Save VincentTatan/a48471a7716375934f38c0072e3a4434 to your computer and use it in GitHub Desktop.
def create_heatmap(df,figsize=(10,10)):
corr = df.corr()
fig, ax = plt.subplots(figsize=figsize)
ax.set_title("Heatmap")
sns.heatmap(corr,ax=ax, annot=True, linewidths=.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment