Find the index of the first occurrence of a given value.
The value to search for.
int
, optional
int
, optional
MemoryPool
, optional
If not passed, will allocate memory from the default memory pool.
int
the index, or -1 if not found
Examples
>>> import pyarrow as pa >>> import pyarrow.compute as pc >>> arr = pa.array(["Lorem", "ipsum", "dolor", "sit", "Lorem", "ipsum"]) >>> pc.index(arr, "ipsum") <pyarrow.Int64Scalar: 1> >>> pc.index(arr, "ipsum", start=2) <pyarrow.Int64Scalar: 5> >>> pc.index(arr, "amet") <pyarrow.Int64Scalar: -1>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4