Skip to content

daft.functions.list_min#

list_min #

list_min(list_expr: Expression) -> Expression

Calculates the minimum of each list. If no non-null values in a list, the result is null.

Parameters:

Name Type Description Default
list_expr List Expression

expression to calculate the minimum of.

required

Returns:

Name Type Description
Expression Expression

an expression with the type of the list values representing the minimum value in the list

Source code in daft/functions/list.py
129
130
131
132
133
134
135
136
137
138
139
def list_min(list_expr: Expression) -> Expression:
    """Calculates the minimum of each list. If no non-null values in a list, the result is null.

    Args:
        list_expr (List Expression): expression to calculate the minimum of.

    Returns:
        Expression:
            an expression with the type of the list values representing the minimum value in the list
    """
    return Expression._call_builtin_scalar_fn("list_min", list_expr)