handson-ml3
handson-ml3 copied to clipboard
Update 02_end_to_end_machine_learning_project.ipynb
Bonjour @Ageron, your book is helping a lot, I hope this helps you: Changed on line 1208 housing.corr() to housing.corr(numeric_only=True) to remove deprecated warning for future versions.
Starting as of Pandas v2.0.0+, the default param value of numeric_only=False
.
I was encountering a ValueError when creating a correlation matrix in the Chapter 2 code: corr_matrix = housing.corr()
about converting a string to a float and it was fixed by manually defining numeric_only=True
.
This fixes https://github.com/ageron/handson-ml3/issues/86