polars_ops::series

Trait SumMeanHorizontal

Source
pub trait SumMeanHorizontal {
    // Required methods
    fn sum_horizontal(
        &self,
        null_strategy: NullStrategy,
    ) -> PolarsResult<Option<Column>>;
    fn mean_horizontal(
        &self,
        null_strategy: NullStrategy,
    ) -> PolarsResult<Option<Column>>;
}

Required Methods§

Source

fn sum_horizontal( &self, null_strategy: NullStrategy, ) -> PolarsResult<Option<Column>>

Sum all values horizontally across columns.

Source

fn mean_horizontal( &self, null_strategy: NullStrategy, ) -> PolarsResult<Option<Column>>

Compute the mean of all numeric values horizontally across columns.

Implementations on Foreign Types§

Source§

impl SumMeanHorizontal for DataFrame

Source§

fn sum_horizontal( &self, null_strategy: NullStrategy, ) -> PolarsResult<Option<Column>>

Source§

fn mean_horizontal( &self, null_strategy: NullStrategy, ) -> PolarsResult<Option<Column>>

Implementors§