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