-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Open
Labels
EnhancementExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.Needs DiscussionRequires discussion from core team before further actionRequires discussion from core team before further actionTypingtype annotations, mypy/pyright type checkingtype annotations, mypy/pyright type checking
Description
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
Labels
EnhancementExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.Needs DiscussionRequires discussion from core team before further actionRequires discussion from core team before further actionTypingtype annotations, mypy/pyright type checkingtype annotations, mypy/pyright type checking