Skip to content

DISC/DES: EA should have transpose, T, ravel mirroring ndarray/Index/Series #24583

Closed
@jbrockmendel

Description

@jbrockmendel

As long as EA is 1D only these are all no-ops, so implementation is trivial. It would save a bunch of special-casing and checking for exactly what type of object we have at different stages.

The cost is API clutter.

I'm of the opinion that EA should be as close as possible to a drop-in replacement for ndarray, (both for our purposes and so it can be useful in the ecosystem), so we should implement these properties/methods.

Last I heard @TomAugspurger came down on the less-clutter side of this question. Anyone else have an opinion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementExtensionArrayExtending pandas with custom dtypes or arrays.Needs DiscussionRequires discussion from core team before further action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions