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>
.
List methods for Series |
|
Return a new list Series with the leaf values casted to the specified data type. |
|
For a column with at least one level of nesting, concatenate the lists in each row. |
|
Returns boolean values indicating whether the specified scalar is an element of each row. |
|
Returns integers representing the index of the search key for each row. |
|
Extract element at the given index from each list in a Series of lists. |
From a Series of (possibly nested) lists, obtain the elements from the innermost lists as a flat Series (one value per row). |
|
|
Computes the length of each element in the Series/Index. |
|
Sort each list by the values. |
|
Collect list elements based on given indices. |
|
Returns the unique elements in each list. |