Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 10, 2020 07:34
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 amankharwal/cc801997dbd070ee0bf72d44a8212596 to your computer and use it in GitHub Desktop.
Save amankharwal/cc801997dbd070ee0bf72d44a8212596 to your computer and use it in GitHub Desktop.
# Let's make our correlation matrix a little prettier
corr_matrix = df.corr()
fig, ax = plt.subplots(figsize=(15, 15))
ax = sns.heatmap(corr_matrix,
annot=True,
linewidths=0.5,
fmt=".2f",
cmap="YlGnBu");
bottom, top = ax.get_ylim()
ax.set_ylim(bottom + 0.5, top - 0.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment