-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes: #11011 This PR: - [x] Adds a side-section for `list` & `struct` handling. - [x] Reduces duplication. - [x] Exposes more `ListMethods` APIs. Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Ashwin Srinath (https://github.com/shwina) URL: #11770
- Loading branch information
1 parent
7a35ed9
commit a945377
Showing
4 changed files
with
50 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
List handling | ||
~~~~~~~~~~~~~ | ||
|
||
``Series.list`` can be used to access the values of the series as | ||
lists and apply list methods to it. These can be accessed like | ||
``Series.list.<function/property>``. | ||
|
||
.. currentmodule:: cudf.core.column.lists.ListMethods | ||
.. autosummary:: | ||
:toctree: api/ | ||
|
||
astype | ||
concat | ||
contains | ||
index | ||
get | ||
leaves | ||
len | ||
sort_values | ||
take | ||
unique |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Struct handling | ||
~~~~~~~~~~~~~~~ | ||
|
||
``Series.struct`` can be used to access the values of the series as | ||
Structs and apply struct methods to it. These can be accessed like | ||
``Series.struct.<function/property>``. | ||
|
||
.. currentmodule:: cudf.core.column.struct.StructMethods | ||
.. autosummary:: | ||
:toctree: api/ | ||
|
||
field | ||
explode |