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

Loading comments...