End-to-End ML Project- Beginner friendly

You are currently auditing this course.
60 / 95

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

Loading comments...