Trait polars_core::chunked_array::ops::ChunkUnique
source · [−]pub trait ChunkUnique<T: PolarsDataType> {
fn unique(&self) -> PolarsResult<ChunkedArray<T>>;
fn arg_unique(&self) -> PolarsResult<IdxCa>;
fn n_unique(&self) -> PolarsResult<usize> { ... }
fn is_unique(&self) -> PolarsResult<BooleanChunked> { ... }
fn is_duplicated(&self) -> PolarsResult<BooleanChunked> { ... }
fn mode(&self) -> PolarsResult<ChunkedArray<T>> { ... }
}
Expand description
Get unique values in a ChunkedArray
Required Methods
sourcefn unique(&self) -> PolarsResult<ChunkedArray<T>>
fn unique(&self) -> PolarsResult<ChunkedArray<T>>
Get unique values of a ChunkedArray
sourcefn arg_unique(&self) -> PolarsResult<IdxCa>
fn arg_unique(&self) -> PolarsResult<IdxCa>
Get first index of the unique values in a ChunkedArray
.
This Vec is sorted.
Provided Methods
sourcefn n_unique(&self) -> PolarsResult<usize>
fn n_unique(&self) -> PolarsResult<usize>
Number of unique values in the ChunkedArray
sourcefn is_unique(&self) -> PolarsResult<BooleanChunked>
fn is_unique(&self) -> PolarsResult<BooleanChunked>
Get a mask of all the unique values.
sourcefn is_duplicated(&self) -> PolarsResult<BooleanChunked>
fn is_duplicated(&self) -> PolarsResult<BooleanChunked>
Get a mask of all the duplicated values.
sourcefn mode(&self) -> PolarsResult<ChunkedArray<T>>
fn mode(&self) -> PolarsResult<ChunkedArray<T>>
Available on crate feature
mode
only.The most occurring value(s). Can return multiple Values