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:
- start
int
Index to start slicing inner list elements (inclusive).
- stop
Optional
[int
], defaultNone
If given, index to stop slicing at (exclusive). If not given, slicing will stop at the end. (NotImplemented)
- step
int
, default 1 Slice step.
- return_fixed_size_list
Optional
[bool], defaultNone
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.
- start
- __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:
- buf
Buffer
The buffer containing the data to deserialize.
- buf
- serialize(self)¶