pyarrow.compute.SplitPatternOptions

class pyarrow.compute.SplitPatternOptions(pattern, *, max_splits=None, reverse=False)

Bases: _SplitPatternOptions

Options for splitting on a string pattern.

Parameters:
patternstr

String pattern to split on.

max_splitsint or None, default None

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 if max_splits is not None.

__init__(self, pattern, *, max_splits=None, reverse=False)

Methods

__init__(self, pattern, *[, max_splits, reverse])

deserialize(buf)

Deserialize options for a function.

serialize(self)

static deserialize(buf)

Deserialize options for a function.

Parameters:
bufBuffer

The buffer containing the data to deserialize.

serialize(self)