Skip to content

Instantly share code, notes, and snippets.

@oscar-defelice
Last active March 15, 2021 17:36
Show Gist options
  • Save oscar-defelice/4fbb8097eafb713ac605a95797e477fc to your computer and use it in GitHub Desktop.
Save oscar-defelice/4fbb8097eafb713ac605a95797e477fc to your computer and use it in GitHub Desktop.
correlation_matrix = df.corr().round(2)
# annot = True to print the values inside the square
sns.heatmap(data=correlation_matrix, annot=True);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment