pyarrow.compute.list_contains#
- pyarrow.compute.list_contains(lists, value, /, *, memory_pool=None)#
Check whether lists contain a given value.
lists must have a list-like type and value must be comparable with the list value type. For each list in lists, true is emitted if any of its values is equal to the corresponding value, false otherwise. A null value matches null list values, and a NaN value matches NaN list values; otherwise null list values never match. Null lists emit a null in the output.
- Parameters:
- listsArray-like or scalar-like
Argument to compute function.
- valueArray-like or scalar-like
Argument to compute function.
- memory_pool
pyarrow.MemoryPool, optional If not passed, will allocate memory from the default memory pool.