polars::prelude

Trait ArgAgg

Source
pub trait ArgAgg {
    // Required methods
    fn arg_min(&self) -> Option<usize>;
    fn arg_max(&self) -> Option<usize>;
}
Available on crate feature polars-ops only.
Expand description

Argmin/ Argmax

Required Methods§

Source

fn arg_min(&self) -> Option<usize>

Get the index of the minimal value

Source

fn arg_max(&self) -> Option<usize>

Get the index of the maximal value

Implementors§