Skip to content

daft.functions.median#

median #

median(expr: Expression) -> Expression

Calculates the median of the values in the expression.

Source code in daft/functions/agg.py
158
159
160
def median(expr: Expression) -> Expression:
    """Calculates the median of the values in the expression."""
    return Expression._from_pyexpr(expr._expr.median())