NestSeriesAccessor#
- class NestSeriesAccessor(series)[source]#
Accessor for operations on Series of NestedDtype
Available as “.nest” property of a Series with NestedDtype.
This accessor implements MutableMapping interface over the fields of the struct, so you can access, change and delete the fields as if it was a dictionary, with [], [] = and del operators.
Methods
__init__(series)clear()Mandatory MutableMapping method, always fails with NotImplementedError
drop(column)Remove the column(s) from the series and return a new series
get(k[,d])get_flat_index()Index of the flat arrays
get_flat_series(field)Get the flat-array field as a pd.Series
get_list_series(field)Get the list-array field as a Series
items()keys()len()Lengths of the list arrays
query(query)Query the flat arrays with a boolean expression
query_flat(query)Query the flat arrays with a boolean expression
set_column(column, value)Set the column from a flat-array of values and return a new series
set_filled_column(column, value)Set the column by repeating values and return a new series
set_flat_column(column, value)Set the column from flat-array of values and return a new series
set_list_column(column, value)Set the field from list-array of values and return a new series
to_flat([columns])Convert nested series into dataframe of flat arrays
to_flatten_inner(field)Explode the nested inner field and return as a NestedSeries
to_lists([columns, large_list])Convert nested series into dataframe of list-array columns
values()with_field(field, value)Set the field from flat-array of values and return a new series
with_filled_field(field, value)Set the field by repeating values and return a new series
with_flat_field(field, value)Set the field from flat-array of values and return a new series
with_list_field(field, value)Set the field from list-array of values and return a new series
without_field(field)Remove the field(s) from the series and return a new series
Attributes
columnsNames of the nested columns
fieldsNames of the nested columns
flat_indexIndex of the flattened arrays
flat_lengthLength of the flat arrays
list_lengthsLengths of the list arrays