Skip to content

Implement the __array_ufunc__ protocol on Series and DataFrame objects #3044

Closed

Description

@mrocklin

Currently numpy ufuncs do not work as expected on dask Series and DataFrame objects. We point people to dask.array ufuncs instead.

With the new __array_ufunc__ protocol we make make this work as expected for all numpy ufuncs. https://docs.scipy.org/doc/numpy-1.13.0/user/basics.subclassing.html#array-ufunc-for-ufuncs

This isn't necessarily high priority, but might be fun for someone who understands the protocol well and wants to affect a large part of the project. The __array_ufunc__ implementation in dask/array/core.py might be a good model.

Activity

  1. added
    good first issue
    on Jan 3, 2018
  2. almaleksia commented on Mar 28, 2018

    @almaleksia
    Contributor

    @mrocklin hi, may I take this one? :)

  3. mrocklin commented on Mar 28, 2018

    @mrocklin
    MemberAuthor

    Of course!

  4. almaleksia commented on Mar 28, 2018

    @almaleksia
    Contributor

    @mrocklin thank you :)

  5. mrocklin commented on Jun 15, 2018

    @mrocklin
    MemberAuthor

    I believe that this has been resolved. Thanks again @almaleksia !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dataframegood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions