Trait polars_core::chunked_array::ops::ChunkUnique [−][src]
pub trait ChunkUnique<T> {
fn unique(&self) -> Result<ChunkedArray<T>>;
fn arg_unique(&self) -> Result<UInt32Chunked>;
fn n_unique(&self) -> Result<usize> { ... }
fn is_unique(&self) -> Result<BooleanChunked> { ... }
fn is_duplicated(&self) -> Result<BooleanChunked> { ... }
fn value_counts(&self) -> Result<DataFrame> { ... }
fn mode(&self) -> Result<ChunkedArray<T>> { ... }
}
Expand description
Get unique values in a ChunkedArray
Required methods
fn unique(&self) -> Result<ChunkedArray<T>>
fn unique(&self) -> Result<ChunkedArray<T>>
Get unique values of a ChunkedArray
fn arg_unique(&self) -> Result<UInt32Chunked>
fn arg_unique(&self) -> Result<UInt32Chunked>
Get first index of the unique values in a ChunkedArray
.
This Vec is sorted.
Provided methods
fn is_unique(&self) -> Result<BooleanChunked>
fn is_unique(&self) -> Result<BooleanChunked>
Get a mask of all the unique values.
fn is_duplicated(&self) -> Result<BooleanChunked>
fn is_duplicated(&self) -> Result<BooleanChunked>
Get a mask of all the duplicated values.
fn value_counts(&self) -> Result<DataFrame>
fn value_counts(&self) -> Result<DataFrame>
Count the unique values.
fn mode(&self) -> Result<ChunkedArray<T>>
fn mode(&self) -> Result<ChunkedArray<T>>
This is supported on crate feature
mode
only.The most occurring value(s). Can return multiple Values
Implementors
impl ChunkUnique<CategoricalType> for CategoricalChunked
This is supported on crate feature
dtype-categorical
only.impl<T> ChunkUnique<ObjectType<T>> for ObjectChunked<T>
This is supported on crate feature
object
only.