BUG: Categorical.from_codes casts nullable int categories to object #39649
Labels
Bug
Categorical
Categorical Data Type
Dtype Conversions
Unexpected or buggy dtype conversions
NA - MaskedArrays
Related to pd.NA and nullable extension arrays
Milestone
For
int64
the construction yields:whereas for nullable int categories:
I expect instead in the nullable int case:
The text was updated successfully, but these errors were encountered: