Skip to content

Index([1], dtype="category").array gives ExtensionArray instead of pd.Categorical #1398

@cmp0xff

Description

@cmp0xff

After #1391,

  • Index([1], dtype="category").array gives ExtensionArray instead of pd.Categorical. We need a fix here.
  • cast("Index[pd.CategoricalDtype]", Index([1], dtype="category")).array, which exists in the current tests, gives pd.Categorical, which is okay-ish, but we need to remove the cast.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CategoricalCategorical Data TypeIndexRelated to the Index class or subclasses

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions