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
Closes#7467
Introduces list method `list.sort_values`. Sorts each list of a LIST column based on given criterion. This method signature is aligned with `Series.sort_values`. Example:
```python
>>> s = cudf.Series([[4, 2, None, 9], [8, 8, 2], [2, 1]])
>>> s.list.sort_values(ascending=False, na_position="last")
0 [nan, 9.0, 4.0, 2.0]
1 [8.0, 8.0, 2.0]
2 [2.0, 1.0]
dtype: list
```
This PR also includes exposing `ListMethods` to docs and a small docstring fix to `cudf.Series`.
Authors:
- Michael Wang (@isVoid)
Approvers:
- GALI PREM SAGAR (@galipremsagar)
- Keith Kraus (@kkraus14)
URL: #7657
#7122 introduces a
lists::sort_lists
API that we should plumb through to Python. The Python API we want is probably something like:The text was updated successfully, but these errors were encountered: