#110 Basic Correlation matrix with Seaborn

 

 

 

 

Seaborn allows to make a correlogram or correlation matrix really easily. Correlogram are awesome for exploratory analysis: it allows to quickly observe the relationship between every variable of your matrix. It is easy to do it with seaborn: just call the pairplot function

 

 

 

 

 

 

 


# library & dataset
import seaborn as sns
df = sns.load_dataset('iris')
import matplotlib.pyplot as plt

# Basic correlogram
sns.pairplot(df)
sns.plt.show()

  • Sponsors

  • 2 comments

    Leave a Reply to Mark Cancel reply

    Your email address will not be published.