-
Notifications
You must be signed in to change notification settings - Fork 908
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
Use cudf::lists::distinct
in Python binding
#11234
Merged
rapids-bot
merged 38 commits into
rapidsai:branch-22.08
from
ttnghia:use_lists_distinct_in_python
Jul 13, 2022
Merged
Use cudf::lists::distinct
in Python binding
#11234
rapids-bot
merged 38 commits into
rapidsai:branch-22.08
from
ttnghia:use_lists_distinct_in_python
Jul 13, 2022
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
Rerun tests. |
ttnghia
force-pushed
the
use_lists_distinct_in_python
branch
from
July 11, 2022 19:54
9367c14
to
7323122
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
github-actions
bot
removed
CMake
CMake build issue
libcudf
Affects libcudf (C++/CUDA) code.
labels
Jul 12, 2022
ttnghia
added
3 - Ready for Review
Ready for review by team
and removed
2 - In Progress
Currently a work in progress
0 - Blocked
Cannot progress due to external reasons
labels
Jul 12, 2022
galipremsagar
approved these changes
Jul 13, 2022
galipremsagar
added
5 - Ready to Merge
Testing and reviews complete, ready to merge
and removed
3 - Ready for Review
Ready for review by team
labels
Jul 13, 2022
@gpucibot merge |
rapids-bot bot
pushed a commit
that referenced
this pull request
Jul 22, 2022
This PR completely removes `cudf::lists::drop_list_duplicates`. It is replaced by the new API `cudf::list::distinct` which has a simpler implementation but better performance. The replacements for internal cudf usage have all been merged before thus there is no side effect or breaking for the existing APIs in this work. Closes #11114, #11093, #11053, #11034, and closes #9257. Depends on: * #11228 * #11149 * #11234 * #11233 Authors: - Nghia Truong (https://github.com/ttnghia) Approvers: - Jordan Jacobelli (https://github.com/Ethyling) - Robert Maynard (https://github.com/robertmaynard) - Vukasin Milovanovic (https://github.com/vuule) - Bradley Dice (https://github.com/bdice) URL: #11236
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
5 - Ready to Merge
Testing and reviews complete, ready to merge
improvement
Improvement / enhancement to an existing function
non-breaking
Non-breaking change
Performance
Performance related issue
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.
Python binding has
lists.unique()
API to extract unique list elements for the input lists column. Previously, it has been implemented by calling tocudf::lists::drop_list_duplicates
, which performs segmented sort on the input lists and then extracts the unique list elements.This PR changes the implementation of
lists.unique()
to usecudf::lists::distinct
, which can improve performance by using a hash table for finding distinct elements without segmented sort.