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_typeDataType, default pyarrow.int32()

The data type of the run_ends array.

Accepted values are pyarrow.{int16(), int32(), int64()}.

optionspyarrow.compute.RunEndEncodeOptions, optional

Alternative way of passing options.

memory_poolpyarrow.MemoryPool, optional

If not passed, will allocate memory from the default memory pool.