Python-Machine-Learning icon indicating copy to clipboard operation
Python-Machine-Learning copied to clipboard

01_regression.ipynb Correlation

Open surajrn opened this issue 1 year ago • 0 comments

When using Pandas version > 2, the correlation code requires an additional argument.

Running data.corr() might give an error which looks like this:

ValueError: could not convert string to float: 'chevrolet chevelle malibu'

Need to change the code snippet to:

data.corr(numeric_only=True)

surajrn avatar Nov 07 '23 17:11 surajrn