#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

  • 1 comment

    • Thanks for this post, useful for a beginner using Seaborn and charting in python. However, in testing it seems the last line should be

      `sns.plt.show()`

      Reply

    Leave a Reply

    Your email address will not be published.