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§
Sourcefn sum_horizontal(
&self,
null_strategy: NullStrategy,
) -> Result<Option<Column>, PolarsError>
fn sum_horizontal( &self, null_strategy: NullStrategy, ) -> Result<Option<Column>, PolarsError>
Sum all values horizontally across columns.
Sourcefn mean_horizontal(
&self,
null_strategy: NullStrategy,
) -> Result<Option<Column>, PolarsError>
fn mean_horizontal( &self, null_strategy: NullStrategy, ) -> Result<Option<Column>, PolarsError>
Compute the mean of all numeric values horizontally across columns.