Skip to content

Alternative implementation for .where on EA-backed Indexes #24144

Closed
@TomAugspurger

Description

@TomAugspurger

Followup to #24114.

Right now Categorical.where and IntervalIndex.where involve converting to objects.

We could use an alternative implementation that copies the underlying array and sets the values.
#24114 (comment) should give a rough idea of the kinds of speedups you'd get.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExtensionArrayExtending pandas with custom dtypes or arrays.PerformanceMemory or execution speed performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions