-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Open
Labels
CategoricalCategorical Data TypeCategorical Data TypeEnhancementMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolatenp.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Description
Feature Type
-
Adding new functionality to pandas
-
Changing existing functionality in pandas
-
Removing existing functionality in pandas
Problem Description
I would like to be able to use pd.NA
for missing data in a column of dtype "category"
Currently this:
pd.DataFrame({"A": ["one", "two", pd.NA]}).astype("category")
converts the pd.NA
to np.NaN
.
Feature Description
I think there should be a "category" dtype that supports pd.NA
.
Alternative Solutions
I don't think there is a current workaround
Additional Context
No response
Metadata
Metadata
Assignees
Labels
CategoricalCategorical Data TypeCategorical Data TypeEnhancementMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolatenp.nan, pd.NaT, pd.NA, dropna, isnull, interpolate