Skip to content

Use reduction_axis for dataframes - #21743

Merged
vyasr merged 1 commit into
NVIDIA:pandas3from
vyasr:fix/reductions
Mar 10, 2026
Merged

Use reduction_axis for dataframes#21743
vyasr merged 1 commit into
NVIDIA:pandas3from
vyasr:fix/reductions

Conversation

@vyasr

@vyasr vyasr commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Description

The variable conditionally reassigned in the code was changed previously but not the later conditional using that variable.

Before:
== 689 failed, 77747 passed, 19478 skipped, 1551 xfailed in 573.81s (0:09:33) ==
After:
== 670 failed, 77766 passed, 19478 skipped, 1551 xfailed in 581.15s (0:09:41) ==

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@vyasr vyasr self-assigned this Mar 10, 2026
@vyasr vyasr added the bug Something isn't working label Mar 10, 2026
@vyasr
vyasr requested a review from a team as a code owner March 10, 2026 23:10
@vyasr vyasr added the non-breaking Non-breaking change label Mar 10, 2026
@vyasr
vyasr requested review from TomAugspurger and rjzamora and removed request for a team March 10, 2026 23:10
@copy-pr-bot

copy-pr-bot Bot commented Mar 10, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the Python Affects Python cuDF API. label Mar 10, 2026
@GPUtester GPUtester moved this to In Progress in cuDF Python Mar 10, 2026
When axis=None, reduction_axis is set to 2 but the subsequent branch
checked 'if axis == 2' which was always False (axis remains None).
Change to 'if reduction_axis == 2' so max/sum/product/median/etc.
correctly reduce across all axes and return a scalar for pandas 3.0.
@vyasr
vyasr merged commit bb57df7 into NVIDIA:pandas3 Mar 10, 2026
9 of 11 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in cuDF Python Mar 10, 2026
@vyasr
vyasr deleted the fix/reductions branch March 10, 2026 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Non-breaking change Python Affects Python cuDF API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants