Skip to content

daft.functions.mean#

mean #

mean(expr: Expression) -> Expression

Calculates the mean of the values in the expression.

Source code in daft/functions/agg.py
153
154
155
def mean(expr: Expression) -> Expression:
    """Calculates the mean of the values in the expression."""
    return Expression._from_pyexpr(expr._expr.mean())