pyarrow.compute.SliceOptions#

class pyarrow.compute.SliceOptions(start, stop=None, step=1)#

Bases: _SliceOptions

Options for slicing.

Parameters:
startint

Index to start slicing at (inclusive).

stopint or None, default None

If given, index to stop slicing at (exclusive). If not given, slicing will stop at the end.

stepint, default 1

Slice step.

__init__(self, start, stop=None, step=1)#

Methods

__init__(self, start[, stop, step])

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