pyarrow.compute.binary_slice#
- pyarrow.compute.binary_slice(strings,/,start,stop=None,step=1,*,options=None,memory_pool=None)#
Slice binary string.
For each binary string instrings, emit the substring defined by(start,stop,step) as given bySliceOptions wherestart isinclusive andstop is exclusive. All three values are measured inbytes.Ifstep is negative, the string will be advanced in reversed order.An error is raised ifstep is zero.Null inputs emit null.
- Parameters:
- stringsArray-like or scalar-like
Argument to compute function.
- start
int Index to start slicing at (inclusive).
- stop
intorNone, defaultNone If given, index to stop slicing at (exclusive).If not given, slicing will stop at the end.
- step
int, default 1 Slice step.
- options
pyarrow.compute.SliceOptions, optional Alternative way of passing options.
- memory_pool
pyarrow.MemoryPool, optional If not passed, will allocate memory from the default memory pool.
On this page

