-
Notifications
You must be signed in to change notification settings - Fork 891
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate group offsets from element labels (#11017)
Given an array of integer values which may be the labels of some list elements, we want to generate an array of offsets so we can create a lists column from these offsets. For example: ``` input_labels = [ 0, 0, 0, 0, 1, 1, 4, 4, 4, 4 ] output = [ 0, 4, 6, 6, 6, 10 ] ``` This is basically the reverse operation of #10945. Closes #10955. Authors: - Nghia Truong (https://github.com/ttnghia) Approvers: - Devavret Makkar (https://github.com/devavret) - Jake Hemstad (https://github.com/jrhemstad) URL: #11017
- Loading branch information
Showing
2 changed files
with
104 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