Skip to content

Conversation

@Giovanniko
Copy link

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.

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.
@voacado
Copy link

voacado commented May 7, 2023

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.

@frederickjjoubert
Copy link

This fixes #86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants