Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left

02 D 04 H : 25 M : 21 S   Apply Now

End-to-End ML Project- Beginner friendly

59 / 94

Computing correlation matrix

We can use the DataFrame.corr() method to compute the correlation coefficient between every attribute of the DataFrame. It returns a correlation matrix in the form of a DataFrame. Correlation matrix is a symmetrical matrix, showing the correlation coefficient between attributes.

Refer to corr() documentation for further details about the method.

INSTRUCTIONS

Compute the correlation matrix for our DataFrame train_copy.

Get Hint See Answer

Please login to comment

Be the first one to comment!