polars_ops::series

Trait SeriesMethods

Source
pub trait SeriesMethods: SeriesSealed {
    // Provided methods
    fn value_counts(
        &self,
        sort: bool,
        parallel: bool,
        name: PlSmallStr,
        normalize: bool,
    ) -> PolarsResult<DataFrame> { ... }
    fn ensure_sorted_arg(&self, operation: &str) -> PolarsResult<()> { ... }
    fn is_sorted(&self, options: SortOptions) -> PolarsResult<bool> { ... }
}

Provided Methods§

Source

fn value_counts( &self, sort: bool, parallel: bool, name: PlSmallStr, normalize: bool, ) -> PolarsResult<DataFrame>

Create a DataFrame with the unique values of this Series and a column "counts" with dtype IdxType

Source

fn ensure_sorted_arg(&self, operation: &str) -> PolarsResult<()>

Source

fn is_sorted(&self, options: SortOptions) -> PolarsResult<bool>

Checks if a Series is sorted. Tries to fail fast.

Implementations on Foreign Types§

Source§

impl SeriesMethods for Series

Implementors§