Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left
Apply NowLogin using Social Account
     Continue with GoogleLogin using your credentials
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.
Compute the correlation matrix for our DataFrame train_copy
.
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Loading comments...