Open surajrn opened 1 year ago
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)
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)