pyarrow.compute.ReplaceSliceOptions#

class pyarrow.compute.ReplaceSliceOptions(start, stop, replacement)#

Bases: _ReplaceSliceOptions

Options for replacing slices.

Parameters:
startint

Index to start slicing at (inclusive).

stopint

Index to stop slicing at (exclusive).

replacementstr

What to replace the slice with.

__init__(self, start, stop, replacement)#

Methods

__init__(self, start, stop, replacement)

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)#