Created
October 14, 2019 08:37
-
-
Save Krishna829/bec6d14e25f1b98df0ba5ed8d5a8b70f to your computer and use it in GitHub Desktop.
Correlation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the width and height of the plot | |
f, ax = plt.subplots(figsize=(10, 10)) | |
# Generate correlation matrix | |
corr_matrix = data.corr() | |
# Plot using seaborn library | |
sns.heatmap(corr_matrix, mask=np.zeros_like(corr_matrix,dtype=np.bool), | |
square=True, ax=ax, annot=True) | |
plt.plot() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
corr_matrix = data.corr() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment