Python-Machine-Learning
Python-Machine-Learning copied to clipboard
01_regression.ipynb Correlation
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)