-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
CategoricalCategorical Data TypeCategorical Data TypeDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversions
Milestone
Description
It'd be more consistent if this had object
dtype (and so an Index([])
instead of a Float64Index([])
.
In [4]: pd.Categorical([]).categories.dtype
Out[4]: dtype('float64')
I suspect this is just an implementation detail, not intentional.
Came up in #17236 (my rework to remove the keyword).
Metadata
Metadata
Assignees
Labels
CategoricalCategorical Data TypeCategorical Data TypeDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversions