pyarrow.compute.unique#

pyarrow.compute.unique(array, /, *, memory_pool=None)#

Compute unique elements.

Return an array with distinct values. Nulls are considered as a distinct value as well.

Parameters:
arrayArray-like

Argument to compute function.

memory_poolpyarrow.MemoryPool, optional

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