pyarrow.compute.utf8_split_whitespace#

pyarrow.compute.utf8_split_whitespace(strings,/,*,max_splits=None,reverse=False,options=None,memory_pool=None)#

Split string according to any Unicode whitespace.

Split each string according any non-zero length sequence of Unicodewhitespace characters. 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 SplitOptions.

Parameters:
stringsArray-like or scalar-like

Argument to compute function.

max_splitsint orNone, defaultNone

Maximum number of splits for each input value (unlimited if None).

reversebool, defaultFalse

Whether to start splitting from the end of each input value.This only has an effect ifmax_splits is not None.

optionspyarrow.compute.SplitOptions, optional

Alternative way of passing options.

memory_poolpyarrow.MemoryPool, optional

If not passed, will allocate memory from the default memory pool.