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

Compute parent indices of nested list values.

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

listsArray-like or scalar-like

Argument to compute function.

memory_poolpyarrow.MemoryPool, optional

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