pyarrow.compute.ListSliceOptions#

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

Bases: _ListSliceOptions

Options for list array slicing.

Parameters:
startint

Index to start slicing inner list elements (inclusive).

stopOptional[int], default None

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

stepint, default 1

Slice step.

return_fixed_size_listOptional[bool], default None

Whether to return a FixedSizeListArray. If true _and_ stop is after a list element’s length, nulls will be appended to create the requested slice size. The default of None will return the same type which was passed in.

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

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