polars.sum

polars.sum(column: Union[str, List[Union[str, polars.internals.expr.Expr]]]) polars.internals.expr.Expr
polars.sum(column: polars.internals.series.Series) Union[int, float]

Get the sum value.

column

Column(s) to be used in aggregation. Will lead to different behavior based on the input. input: - Union[str, Series] -> aggregate the sum value of that column. - List[Expr] -> aggregate the sum value horizontally.