pyarrow.compute.PartitionNthOptions

class pyarrow.compute.PartitionNthOptions(pivot, *, null_placement='at_end')

Bases: _PartitionNthOptions

Options for the partition_nth_indices function.

Parameters:
pivotint

Index into the equivalent sorted array of the pivot element.

null_placementstr, default “at_end”

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

__init__(self, pivot, *, null_placement='at_end')

Methods

__init__(self, pivot, *[, 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)