pyarrow.compute.SortOptions¶
- class pyarrow.compute.SortOptions(sort_keys=(), *, null_placement='at_end')¶
Bases:
_SortOptionsOptions for the sort_indices function.
- Parameters:
- sort_keyssequence of (
name,order)tuples Names of field/column keys to sort the input on, along with the order each field/column is sorted in. Accepted values for order are “ascending”, “descending”.
- null_placement
str, default “at_end” Where nulls in input should be sorted, only applying to columns/fields mentioned in sort_keys. Accepted values are “at_start”, “at_end”.
- sort_keyssequence of (
- __init__(self, sort_keys=(), *, null_placement='at_end')¶
Methods
__init__(self[, sort_keys, null_placement])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)¶