handson-ml3 icon indicating copy to clipboard operation
handson-ml3 copied to clipboard

Update 02_end_to_end_machine_learning_project.ipynb

Open Giovanniko opened this issue 1 year ago • 2 comments

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.

Giovanniko avatar Apr 04 '23 13:04 Giovanniko

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.

voacado avatar May 07 '23 21:05 voacado

This fixes https://github.com/ageron/handson-ml3/issues/86

frederickjjoubert avatar Jul 14 '23 15:07 frederickjjoubert