Skip to content

Instantly share code, notes, and snippets.

@srishtis
Created September 25, 2018 14:47
Show Gist options
  • Save srishtis/e46374c880af809e9ba8ddabf2e0543d to your computer and use it in GitHub Desktop.
Save srishtis/e46374c880af809e9ba8ddabf2e0543d to your computer and use it in GitHub Desktop.
Correlation matrix of variables
# Plot the Correlation map to see how features are correlated with target: SalePrice
corr_matrix = train_df.corr()
plt.subplots(figsize=(12,9))
sns.heatmap(corr_matrix, vmax=0.9, square=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment