pyarrow.compute.list_parent_indices#

pyarrow.compute.list_parent_indices(lists, /, *, memory_pool=None)#

Compute parent indices of nested list values.

lists must have a list-like type. For each value in each list of lists, the top-level list index is emitted.

Parameters:
listsArray-like or scalar-like

Argument to compute function.

memory_poolpyarrow.MemoryPool, optional

If not passed, will allocate memory from the default memory pool.