pyarrow.compute.InversePermutationOptions#

class pyarrow.compute.InversePermutationOptions(max_index=-1, output_type=None)#

Bases: _InversePermutationOptions

Options for inverse_permutation function.

Parameters:
max_indexint64, default -1

The max value in the input indices to allow. The length of the function’s output will be this value plus 1. If negative, this value will be set to the length of the input indices minus 1 and the length of the function’s output will be the length of the input indices.

output_typeDataType, default None

The data type for the output array of inverse permutation. If None, the output will be of the same type as the input indices, otherwise must be a signed integer type. An invalid error will be reported if this type is not able to store the length of the input indices.

__init__(self, max_index=-1, output_type=None)#

Methods

__init__(self[, max_index, output_type])

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