polars_lazy::dsl

Function apply_binary

Source
pub fn apply_binary<F>(
    a: Expr,
    b: Expr,
    f: F,
    output_type: SpecialEq<Arc<dyn FunctionOutputField>>,
) -> Expr
where F: 'static + Fn(Column, Column) -> Result<Option<Column>, PolarsError> + Send + Sync,
Expand description

Like map_binary, but used in a group_by-aggregation context.

See Expr::apply for the difference between map and apply.