-
Notifications
You must be signed in to change notification settings - Fork 913
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
Implement scan-based whole-frame aggregations for cudf-polars #16509
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lithomas1
added
feature request
New feature or request
non-breaking
Non-breaking change
labels
Aug 7, 2024
github-actions
bot
added
Python
Affects Python cuDF API.
cudf.polars
Issues specific to cudf.polars
labels
Aug 7, 2024
lithomas1
requested review from
vyasr and
isVoid
and removed request for
a team
August 7, 2024 23:15
@@ -26,7 +26,7 @@ def test_translation_assert_raises(): | |||
class E(Exception): | |||
pass | |||
|
|||
unsupported = df.group_by("a").agg(pl.col("a").cum_max().alias("b")) | |||
unsupported = df.group_by("a").agg(pl.col("a").upper_bound().alias("b")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine for now since it's already doing this just with another function, but I'll do some thinking about how we can test the IR translation utility without needing to chase an actually unsupported feature
brandon-b-miller
approved these changes
Aug 16, 2024
/ok to test |
/merge |
rapids-bot
bot
merged commit Aug 20, 2024
152111b
into
rapidsai:feature/cudf-polars
76 of 77 checks passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cudf.polars
Issues specific to cudf.polars
feature request
New feature or request
non-breaking
Non-breaking change
Python
Affects Python cuDF API.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
contributes to #16478
This implements "cum_min", "cum_max", "cum_prod", "cum_sum"
"cum_count" is not implemented for now, since there's no exact libcudf match (I imagine the non-grouped case is also not used that much but haven't checked).
I suppose we could implement it by creating a column of 1s and copying the null mask over, and doing a cum_sum on that.
Let me know if you want to try that.
Checklist