pyarrow.compute.ArraySortOptions

class pyarrow.compute.ArraySortOptions(order='ascending', *, null_placement='at_end')

Bases: pyarrow._compute._ArraySortOptions

Options for the array_sort_indices function.

Parameters
orderstr, default “ascending”

Which order to sort values in. Accepted values are “ascending”, “descending”.

null_placementstr, default “at_end”

Where nulls in the input should be sorted. Accepted values are “at_start”, “at_end”.

__init__(self, order='ascending', *, null_placement='at_end')

Methods

__init__(self[, order, null_placement])

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)