pyarrow.compute.unique#

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

Compute unique elements.

Return an array with distinct values. Nulls in the input are ignored.

Parameters
arrayArray-like

Argument to compute function.

memory_poolpyarrow.MemoryPool, optional

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