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
Describe the bug Pandas has extension DTypes. When you fit a Univariate calculator, or presumably anything that else that checks for dtypes using _split_features_by_type, columns are dropped because Int64 is not in
In num_dtypes: False
in ['Int64']: True
dtype: Int64
new dtype: int64
In num_dtypes: True
Expected behavior
There should be support for these dtypes, and columns shouldn't be dropped without the user knowing.
Additional context
I'm going to work around the issue by converting my datatypes to underlying numpy types using pd.Series.dtype.type. But for a fix, I think you should use np.issubdtype(dtype.type, np.number).
The text was updated successfully, but these errors were encountered:
Describe the bug
Pandas has extension DTypes. When you fit a Univariate calculator, or presumably anything that else that checks for dtypes using
_split_features_by_type
, columns are dropped becauseInt64
is not inTo Reproduce
Using an environment with
nannyml=0.10.7
Expected behavior
There should be support for these dtypes, and columns shouldn't be dropped without the user knowing.
Additional context
I'm going to work around the issue by converting my datatypes to underlying
numpy
types usingpd.Series.dtype.type
. But for a fix, I think you should usenp.issubdtype(dtype.type, np.number)
.The text was updated successfully, but these errors were encountered: