Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import seaborn as sns
- # Get numerical features from a pandas dataframe
- numeric_types = ['float64', 'int64', 'uint8']
- numerical_features = df.select_dtypes(include=numeric_types)
- corr = numerical_features.corr()
- sns.heatmap(corr)
- plt.show()
Add Comment
Please, Sign In to add comment