ENH: Should pandas.CategoricalDtype
use pandas.NA
as the sentinel value instead of float('nan')
?
#43836
Labels
Categorical
Categorical Data Type
Enhancement
NA - MaskedArrays
Related to pd.NA and nullable extension arrays
Needs Discussion
Requires discussion from core team before further action
Almost all of the the new nullable data types (which are incredibly useful btw.) seem to use
pd.NA
as the null-value.However, I noticed that
pandas.CategoricalDtype
still usesfloat('nan')
, which I suppose is for historical reasons.Are there any plans - for the sake of consistency - to switch
CategoricalDtype
's sentinel value topandas.NA
in the future?The text was updated successfully, but these errors were encountered: