Skip to content

Align ExtensionArray with abc.Sequence #28770

Open
@WillAyd

Description

@WillAyd

ref #28762 (comment)

Right now the ExtensionArray is missing a few methods that would allow it to align with the abc.Sequence interface, namely count, index, __reversed__ and __contains__

I think we might want to add those items to the interface to aid our type checking and make for more intuitive use cases of the ExtensionArray

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementExtensionArrayExtending pandas with custom dtypes or arrays.Needs DiscussionRequires discussion from core team before further actionTypingtype annotations, mypy/pyright type checking

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions