pyarrow.compute.index_in#

pyarrow.compute.index_in(values, /, value_set, *, skip_nulls=False, options=None, memory_pool=None)#

Return index of each element in a set of values.

For each element in values, return its index in a given set of values, or null if it is not found there. The set of values to look for must be given in SetLookupOptions. By default, nulls are matched against the value set, this can be changed in SetLookupOptions.

Parameters
valuesArray-like or scalar-like

Argument to compute function.

value_setArray

Set of values to look for in the input.

skip_nullsbool, default False

If False, nulls in the input are matched in the value_set just like regular values. If True, nulls in the input always fail matching.

optionspyarrow.compute.SetLookupOptions, optional

Alternative way of passing options.

memory_poolpyarrow.MemoryPool, optional

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