Skip to content
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

Support pivot with index or column arguments as lists #17373

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

mroeschke
Copy link
Contributor

Description

closes #17360

Technically I suppose this was more of an enhancement since the documentation suggested only a single label was supported, but I'll mark as a bug since the error message was not informative.

Checklist

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

@mroeschke mroeschke added bug Something isn't working improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Nov 19, 2024
@mroeschke mroeschke self-assigned this Nov 19, 2024
@mroeschke mroeschke requested a review from a team as a code owner November 19, 2024 20:20
@github-actions github-actions bot added the Python Affects Python cuDF API. label Nov 19, 2024
@mroeschke mroeschke removed the improvement Improvement / enhancement to an existing function label Nov 19, 2024
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine to me. Can you check if any of the other pivot related bugs are fixed by this?
https://github.com/rapidsai/cudf/issues?q=is%3Aissue%20state%3Aopen%20pivot

I feel like this PR might fix some of those. If you see any candidates, please add that this closes them and also add corresponding tests for those if needed.

@mroeschke
Copy link
Contributor Author

Can you check if any of the other pivot related bugs are fixed by this?

Doubled checked those issues, and unfortunately this PR doesn't fix those issues. (Most are related to pivot_table which has a different implementation.

@mroeschke
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 332cc06 into rapidsai:branch-24.12 Nov 20, 2024
104 checks passed
@mroeschke mroeschke deleted the bug/pivot/list_like branch November 20, 2024 20:02
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
Status: Done
Development

Successfully merging this pull request may close these issues.

[BUG] Function cudf.DataFrame.pivot doesn't support lists of columns and index arguments
3 participants