pyarrow.compute.split_pattern#
- pyarrow.compute.split_pattern(strings,/,pattern,*,max_splits=None,reverse=False,options=None,memory_pool=None)#
Split string according to separator.
Split each string according to the exactpattern defined inSplitPatternOptions. The output for each string input is a listof strings.
The maximum number of splits and direction of splitting(forward, reverse) can optionally be defined in SplitPatternOptions.
- Parameters:
- stringsArray-like or scalar-like
Argument to compute function.
- pattern
str String pattern to split on.
- max_splits
intorNone, defaultNone Maximum number of splits for each input value (unlimited if None).
- reversebool, default
False Whether to start splitting from the end of each input value.This only has an effect ifmax_splits is not None.
- options
pyarrow.compute.SplitPatternOptions, 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

