Closed
Description
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.