pyarrow.compute.ReplaceSubstringOptions#

classpyarrow.compute.ReplaceSubstringOptions(pattern,replacement,*,max_replacements=None)#

Bases:_ReplaceSubstringOptions

Options for replacing matched substrings.

Parameters:
patternstr

Substring pattern to look for inside input values.

replacementstr

What to replace the pattern with.

max_replacementsint orNone, defaultNone

The maximum number of strings to replace in eachinput value (unlimited if None).

__init__(self,pattern,replacement,*,max_replacements=None)#

Methods

__init__(self, pattern, replacement, *[, ...])

deserialize(buf)

Deserialize options for a function.

serialize(self)

staticdeserialize(buf)#

Deserialize options for a function.

Parameters:
bufBuffer

The buffer containing the data to deserialize.

serialize(self)#