-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Groupby.shift
c++ API refactor and python binding (#8131)
Closes #7183 , follow up of #7910 This PR: - refactors existing libcudf `groupby::shift` API, which only takes a single column, to accept multiple columns. - adds cython and python bindings for `groupby.shift`. Example python usage: ``` df = cudf.DataFrame({"a":[1,2,1,2,2], "b":["x", "y", "z", "42", "7"]}) >>> df.groupby("a").shift(1) b a 1 <NA> 1 x 2 <NA> 2 y 2 42 ``` Minor refactors: - adds `use_thread` parameter to `dataset_generator.rand_dataframe` to expose thread pool config. Authors: - Michael Wang (https://github.com/isVoid) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) - Robert Maynard (https://github.com/robertmaynard) - Ashwin Srinath (https://github.com/shwina) - Keith Kraus (https://github.com/kkraus14) - Karthikeyan (https://github.com/karthikeyann) - Christopher Harris (https://github.com/cwharris) URL: #8131
- Loading branch information
Showing
9 changed files
with
545 additions
and
77 deletions.
There are no files selected for viewing
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
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
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
Oops, something went wrong.