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 NowWe 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.
Please login to comment
Be the first one to comment!