pyarrow.compute.is_in

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

Find each element in a set of values.

For each element in values, return true if it is found in a given set of values, false otherwise. 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.