pyarrow.compute.index

pyarrow.compute.index(data, value, start=None, end=None, *, memory_pool=None)[source]

Find the index of the first occurrence of a given value.

Parameters
  • data (Array or ChunkedArray) –

  • value (Scalar-like object) –

  • start (int, optional) –

  • end (int, optional) –

Returns

index (the index, or -1 if not found)