Skip to content

Implement Index.__array_ufunc__ #32411

Closed
Closed
@TomAugspurger

Description

@TomAugspurger

It'd be similar to Series.__array_ufunc__, (extract array, apply ufunc, box in index with name) with the exception that

  1. No alignment when operating between multiple indexes
  2. We'd need to decide whether Index or Series defers when calling ufuncs on inputs of mixed index and series. Check what binops does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Compatpandas objects compatability with Numpy or Python functionsEnhancementIndexRelated to the Index class or subclasses

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions