Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

visualize correlation matrix python

import seaborn as sns
df = sns.load_dataset('iris')
corr_matrix = df.corr()
corr_matrix.style.background_gradient(cmap='coolwarm')
# 'RdBu_r', 'BrBG_r', & PuOr_r are other good diverging colormaps
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #visualize #correlation #matrix #python
ADD COMMENT
Topic
Name
9+4 =