Struct polars::datatypes::CategoricalType [−][src]
pub struct CategoricalType {}
Trait Implementations
Create a new ChunkedArray filled with values at that index.
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<CategoricalType>, PolarsError> where
ChunkedArray<CategoricalType>: Sized,
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<CategoricalType>, PolarsError> where
ChunkedArray<CategoricalType>: Sized,
Filter values in the ChunkedArray with a boolean mask. Read more
Return a reversed version of this array.
Returned a sorted ChunkedArray
.
Sort this array in place.
Retrieve the indexes needed to sort this array.
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
fn argsort_multiple(
&self,
_other: &[Series],
_reverse: &[bool]
) -> Result<ChunkedArray<UInt32Type>, PolarsError>
Retrieve the indexes need to sort this and the other arrays.
Traverse and collect every nth element in a new array.
Get unique values of a ChunkedArray
Get first index of the unique values in a ChunkedArray
.
This Vec is sorted. Read more
Get a mask of all the unique values.
Get a mask of all the duplicated values.
Count the unique values.
Number of unique values in the ChunkedArray
The most occurring value(s). Can return multiple Values
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<CategoricalType>
) -> Result<ChunkedArray<CategoricalType>, PolarsError>
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<CategoricalType>
) -> Result<ChunkedArray<CategoricalType>, PolarsError>
Create a new ChunkedArray with values from self where the mask evaluates true
and values
from other
where the mask evaluates false
Read more