Categoricals with NaNs · Issue #3678 · pandas-dev/pandas (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
Not sure how to handle this yet. It looks like NaNs do not become a level. Should they? Maybe so. Also describe fails if NaNs are present.
pandas.Categorical([np.nan, np.nan, 1, 1, 1, 2, 3, 4, 5, 5, 4, 3, 3]).describe()