Skip to content

ExtensionArray isin #20617

Closed
Closed
@TomAugspurger

Description

@TomAugspurger

Some (many?) extension array scalar types will have a corresponding container type. For example, IPArray defines isin to match the standard library's behavior where an address can be in a network.

https://github.com/ContinuumIO/cyberpandas/blob/054d3a37fe84a8d222795c31bbf99ef34be90fbf/cyberpandas/ip_array.py#L349-L388

Do we want to dispatch isin to Extension arrays? #20522 is doing some work so that pd.core.algos(categorical) dispatches to a specialized (faster) .isin, so the additional work will be small.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AlgosNon-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diffEnhancementExtensionArrayExtending pandas with custom dtypes or arrays.isinisin method

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions