Skip to content

daft.functions.sum#

sum #

sum(expr: Expression) -> Expression

Calculates the sum of the values in the expression.

Source code in daft/functions/agg.py
35
36
37
def sum(expr: Expression) -> Expression:
    """Calculates the sum of the values in the expression."""
    return Expression._from_pyexpr(expr._expr.sum())