Skip to content

Implement numeric_only kwarg for dask.dataframe reductions #7714

Closed

Description

@jsignell

In tracking down some failures on upstream tests #7710 I realized that dask.dataframe should implement numeric_only for reductions like prod, sum and so on. This has some extra urgency now since pandas 1.3.0 will raise a warning if the numeric_only kwarg is not explicitly set.

FutureWarning: Dropping of nuisance columns in DataFrame reductions (with 'numeric_only=None') is deprecated; in a future version this will raise TypeError.  Select only valid columns before calling the reduction.

Ping @kkraus14 and @quasiben to check if cudf needs to implement this kwarg as well.

Activity

  1. kkraus14 commented on May 26, 2021

    @kkraus14
    Member
  2. shwina commented on May 26, 2021

    @shwina
    Contributor

    cuDF supports this kwarg for reductions on DataFrame objects (example).

  3. jsignell commented on May 26, 2021

    @jsignell
    MemberAuthor

    Thanks!

    As a side-note since I've been thinking about optimization, it would be neat to handle numeric_only on the dask-side as a cull.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions