Skip to content

Instantly share code, notes, and snippets.

@gabriel19913
Created November 26, 2019 13:25
Show Gist options
  • Select an option

  • Save gabriel19913/217cc873a73a9247bbc89778a3cd979a to your computer and use it in GitHub Desktop.

Select an option

Save gabriel19913/217cc873a73a9247bbc89778a3cd979a to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import seaborn as sns
plt.figure(figsize=(10,10))
sns.set(font_scale=1.5)
ax=sns.heatmap(df.corr(), cmap = "RdBu_r")
bottom, top = ax.get_ylim()
ax.set_ylim(bottom + 0.5, top - 0.5)
plt.tight_layout()
plt.savefig('pearson.png')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment