polars::prelude

Trait SumMeanHorizontal

Source
pub trait SumMeanHorizontal {
    // Required methods
    fn sum_horizontal(
        &self,
        null_strategy: NullStrategy,
    ) -> Result<Option<Column>, PolarsError>;
    fn mean_horizontal(
        &self,
        null_strategy: NullStrategy,
    ) -> Result<Option<Column>, PolarsError>;
}
Available on crate feature polars-ops only.

Required Methods§

Source

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

Sum all values horizontally across columns.

Source

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

Compute the mean of all numeric values horizontally across columns.

Implementors§