Skip to content

daft.functions.avg#

avg #

avg(expr: Expression) -> Expression

Calculates the mean of the values in the expression. Alias for mean().

Source code in daft/functions/agg.py
163
164
165
def avg(expr: Expression) -> Expression:
    """Calculates the mean of the values in the expression. Alias for mean()."""
    return Expression._from_pyexpr(expr._expr.mean())