ageron/handson-ml3

[BUG] DataFrame.corr() is not called correctly

lookbusy1344 opened this issue · 1 comments

02_end_to_end_machine_learning_project.ipynb contains a bug in calls to DataFrame.corr(), eg the line

corr_matrix = housing.corr()

Should be

corr_matrix = housing.corr(numeric_only=True)

Running it on colab gives a warning, but it errors (without a useful error message) on a newer version of Pandas.

Bumping this issue, just ran into it myself and got stuck for a while. I thought I may have missed dropping the ocean_proximity column but that wasn't the case.