Use cudf::lists::distinct in Python binding#11234
Merged
rapids-bot[bot] merged 38 commits intorapidsai:branch-22.08from Jul 13, 2022
Merged
Use cudf::lists::distinct in Python binding#11234rapids-bot[bot] merged 38 commits intorapidsai:branch-22.08from
cudf::lists::distinct in Python binding#11234rapids-bot[bot] merged 38 commits intorapidsai:branch-22.08from
Conversation
Contributor
Author
|
Rerun tests. |
9367c14 to
7323122
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
galipremsagar
approved these changes
Jul 13, 2022
Contributor
|
@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
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.