Skip to content

Implement Index.__array_ufunc__ #32411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TomAugspurger opened this issue Mar 3, 2020 · 4 comments
Closed

Implement Index.__array_ufunc__ #32411

TomAugspurger opened this issue Mar 3, 2020 · 4 comments
Labels
Compat pandas objects compatability with Numpy or Python functions Enhancement Index Related to the Index class or subclasses

Comments

@TomAugspurger
Copy link
Contributor

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.
@TomAugspurger TomAugspurger added the Index Related to the Index class or subclasses label Mar 3, 2020
@TomAugspurger TomAugspurger added this to the Contributions Welcome milestone Mar 3, 2020
@ghost
Copy link

ghost commented Mar 3, 2020

@TomAugspurger Would this be appropriate for first-time contributors? If so, I would like to work on this.

@TomAugspurger
Copy link
Contributor Author

TomAugspurger commented Mar 3, 2020 via email

@ghost
Copy link

ghost commented Mar 3, 2020

Thanks for the heads up.

@jbrockmendel jbrockmendel added the Compat pandas objects compatability with Numpy or Python functions label Sep 17, 2020
@jbrockmendel
Copy link
Member

closed by #43904

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions Enhancement Index Related to the Index class or subclasses
Projects
None yet
Development

No branches or pull requests

3 participants