-
Notifications
You must be signed in to change notification settings - Fork 872
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
Migrate lists/sorting to pylibcudf #16179
base: branch-24.08
Are you sure you want to change the base?
Conversation
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.
Thanks for the PR.
Left some small comments r.e. testing/consistency
expect = pa.array(expected) | ||
|
||
assert_column_eq(expect, res) | ||
assert_column_eq(expect, res_stable) |
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.
Can we add test cases where the stable sort/non stable sort result is not the same?
(i.e. one where we have duplicates?)
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.
I can but I don't think the output diff wouldn't be noticeable unless you can sort by key
The input column. | ||
ascending : bool | ||
If true, the sort order is ascending. Otherwise, the sort order is descending. | ||
na_position : str |
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.
I think it might be better to just have the user pass in a NullOrder enum (since that is exposed to Python).
The order enum might also be exposed (but like having a boolean for order better).
Description
Apart of #15162
Checklist