- pyarrow.compute.utf8_replace_slice(strings, /, start, stop, replacement, *, options=None, memory_pool=None)¶
Replace a slice of a string.
For each string in strings, replace a slice of the string defined by start and stop indices with the given replacement. start is inclusive and stop is exclusive, and both are measured in UTF8 characters. Null values emit null.
- stringsArray-like or scalar-like
Argument to compute function.
Index to start slicing at (inclusive).
Index to stop slicing at (exclusive).
What to replace the slice with.
Alternative way of passing options.
If not passed, will allocate memory from the default memory pool.