pyarrow.compute.InversePermutationOptions#
- class pyarrow.compute.InversePermutationOptions(max_index=-1, output_type=None)#
Bases:
_InversePermutationOptionsOptions for inverse_permutation function.
- Parameters:
- max_index
int64, 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_type
DataType, defaultNone 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.
- max_index
- __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:
- buf
Buffer The buffer containing the data to deserialize.
- buf
- serialize(self)#