Skip to content

Pandas 1.2.0 compatibility - column reductions are applied column-wise (when possible) #8216

Open

Description

@jsignell

Therefore now applied on eg the integer columns separately. In a test case, this caused the integers to overflow for prod(). While before, the DataFrame was converted to a float ndarray (because it also has a float columns), not giving those overflow issues. Hence the test was failing (see test dask/dataframe/tests/test_ufunc.py::test_ufunc_with_reduction). The question here is whether dask wants to follow that behaviour.

Activity

  1. changed the title [-]Starting with pandas 1.2.0, column reductions are applied column-wise (when possible), and therefore now applied on eg the integer columns separately. In a test case, this caused the integers to overflow for `prod()`. While before, the DataFrame was converted to a float ndarray (because it also has a float columns), not giving those overflow issues. Hence the test was failing (see test `dask/dataframe/tests/test_ufunc.py::test_ufunc_with_reduction`).The question here is whether dask wants to follow that behaviour (I am not familiar with how column reductions are currently implemented).[/-] [+]Pandas 1.2.0 compatibility - column reductions are applied column-wise (when possible)[/+] on Oct 4, 2021
  2. added
    needs attention
    on Nov 8, 2021
  3. jsignell commented on Feb 23, 2022

    @jsignell
    MemberAuthor

    I started looking at this today and I no longer feel confident that we want to add a whole new column-wise reduction codepath just to follow pandas on this.

  4. removed
    needs attention
    on Sep 16, 2024
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