Finding correlated columns

Let's next find out which of the columns from the red wine database are highly correlated. If you recall, we discussed different types of correlation in Chapter 7, Correlation. Just so you grasp the intention behind the correlation, I highly recommend going through Chapter 7, Correlation, just to revamp your memory. Having said that, let's continue with finding highly correlated columns:

  1. We can continue using the seaborn.pairplot() method, as shown here:
sns.pairplot(df_red)

And you should get a highly comprehensive graph, as shown in the screenshot:

Figure 12.4 - Correlation between different columns of the red ...

Get Hands-On Exploratory Data Analysis with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.