You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of Pandas version 2.0.0 Dataframe.corr breaks if there are non numeric columns.
The problem appears in a couple of cells. One in Section 2.2 and one in Section 2.3
To Reproduce
corr_matrix=housing.corr()
Solution
corr_matrix=housing.corr(numeric_only=True)
Versions:
MacOSX 14.0
Python: 3.11.6
Scikit-Learn: 1.3.1
Pandas 2.0.0
The text was updated successfully, but these errors were encountered:
As of Pandas version 2.0.0 Dataframe.corr breaks if there are non numeric columns.
The problem appears in a couple of cells. One in Section 2.2 and one in Section 2.3
To Reproduce
Solution
Versions:
The text was updated successfully, but these errors were encountered: