Guest User

Untitled

a guest
Oct 21st, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import seaborn as sns
  2.  
  3. # Get numerical features from a pandas dataframe
  4. numeric_types = ['float64', 'int64', 'uint8']
  5. numerical_features = df.select_dtypes(include=numeric_types)
  6.  
  7. corr = numerical_features.corr()
  8. sns.heatmap(corr)
  9. plt.show()
Add Comment
Please, Sign In to add comment