Skip to content

ENH: convert_dtypes should get an option to convert Categoricals as well #53219

Open
@phofl

Description

@phofl

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

Right now this is a no-op, but we can support EA dtypes in Indexes, which also makes them available for categoricals. What should we do for pyarrow dtype_backend? Cast to arrow dictionary type or to a Categorical backed by Arrow Indexes?

cc @mroeschke

Feature Description

Should probably add a new keyword

Alternative Solutions

Writing this yourself

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Arrowpyarrow functionalityCategoricalCategorical Data TypeEnhancementExtensionArrayExtending pandas with custom dtypes or arrays.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions