pyarrow.compute.run_end_encode#
- pyarrow.compute.run_end_encode(array, /, run_end_type=DataType(int32), *, options=None, memory_pool=None)#
Run-end encode array.
Return a run-end encoded version of the input array.
- Parameters:
- arrayArray-like
Argument to compute function.
- run_end_type
DataType
, defaultpyarrow.int32
() The data type of the run_ends array.
Accepted values are pyarrow.{int16(), int32(), int64()}.
- options
pyarrow.compute.RunEndEncodeOptions
, optional Alternative way of passing options.
- memory_pool
pyarrow.MemoryPool
, optional If not passed, will allocate memory from the default memory pool.