Skip to content

CLN: consolidate Index.astype #18704

Closed
@jreback

Description

@jreback

we have some code repitiion in *Index.astype, IOW each subclass implements a lot of the same boilerplate / logic. I think we could make this a bit simpler (maybe have a class attribute which Index.astype can check for valid types, and override this in sub-classes). just a thought.

xref #18677

Metadata

Metadata

Assignees

No one assigned

    Labels

    CleanDtype ConversionsUnexpected or buggy dtype conversionsIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions