polars.Expr.sum

Expr.sum() polars.internals.expr.Expr

Get sum value.

Notes

Dtypes in {Int8, UInt8, Int16, UInt16} are cast to Int64 before summing to prevent overflow issues.