Trait polars::prelude::SeriesMethods

source ·
pub trait SeriesMethods: SeriesSealed {
    // Provided methods
    fn value_counts(
        &self,
        sort: bool,
        parallel: bool,
        name: String
    ) -> Result<DataFrame, PolarsError> { ... }
    fn ensure_sorted_arg(&self, operation: &str) -> Result<(), PolarsError> { ... }
    fn is_sorted(&self, options: SortOptions) -> Result<bool, PolarsError> { ... }
}
Available on crate feature polars-ops only.

Provided Methods§

source

fn value_counts( &self, sort: bool, parallel: bool, name: String ) -> Result<DataFrame, PolarsError>

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) -> Result<(), PolarsError>

source

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

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

Implementors§