- pyarrow.compute.binary_slice(strings, /, start, stop=None, step=1, *, options=None, memory_pool=None)¶
Slice binary string.
For each binary string in strings, emit the substring defined by (start, stop, step) as given by SliceOptions where start is inclusive and stop is exclusive. All three values are measured in bytes. If step is negative, the string will be advanced in reversed order. An error is raised if step is zero. Null inputs emit null.
- stringsArray-like or scalar-like
Argument to compute function.
Index to start slicing at (inclusive).
If given, index to stop slicing at (exclusive). If not given, slicing will stop at the end.
int, default 1
Alternative way of passing options.
If not passed, will allocate memory from the default memory pool.