Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wibowotangara/7c8f7f21edaae15b3c4ce2808d3e7127 to your computer and use it in GitHub Desktop.
Save wibowotangara/7c8f7f21edaae15b3c4ce2808d3e7127 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import seaborn as sns
correlation_matrix = df.corr()
plt.figure(figsize=(10, 8))
sns.heatmap(correlation_matrix, annot=True, cmap='Spectral', center=0, annot_kws={'size': 6})
plt.title('Correlation Heatmap')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment