You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…7591)
Closes#7465
Implements `ListColumn.list.take` based on `cudf::lists:segmented_gather`. Gather elements inside each list based on the provided positions. Example:
```python
>>> s = cudf.Series([[1, 2, 3], [4, 5]])
>>> s
0 [1, 2, 3]
1 [4, 5]
dtype: list
>>> s.list.take([[2, 1], [1, 0]])
0 [3, 2]
1 [5, 4]
dtype: list
```
Authors:
- Michael Wang (@isVoid)
Approvers:
- Keith Kraus (@kkraus14)
URL: #7591
#7003 introduces
lists::segmented_gather
which we should plumb through to Python.I'm not sure what the Python API should look like. For example we could have:
or alternatively:
cc: @kkraus14 if you have a preferred API as this was requested by you in #6542 :)
The text was updated successfully, but these errors were encountered: