pyarrow.compute.utf8_slice_codeunits

pyarrow.compute.utf8_slice_codeunits(strings, *, memory_pool=None, options=None, start, stop=9223372036854775807, step=1)

Slice string .

For each string in strings, slice into a substring defined by start, stop, step) as given by SliceOptions where start is inclusive and stop is exclusive and are measured in codeunits. If step is negative, the string will be advanced in reversed order. A step of zero is considered an error. Null inputs emit null.

Parameters
  • strings (Array-like or scalar-like) – Argument to compute function

  • memory_pool (pyarrow.MemoryPool, optional) – If not passed, will allocate memory from the default memory pool.

  • options (pyarrow.compute.SliceOptions, optional) – Parameters altering compute function semantics.

  • start (optional) – Parameter for SliceOptions constructor. Either options or start can be passed, but not both at the same time.

  • stop (optional) – Parameter for SliceOptions constructor. Either options or stop can be passed, but not both at the same time.

  • step (optional) – Parameter for SliceOptions constructor. Either options or step can be passed, but not both at the same time.