Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/heart disease.py Secret

Created Nov 10, 2020
Embed
What would you like to do?
# 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