ibis.expr.api.GroupedTableExpr.mutate

GroupedTableExpr.mutate(exprs=None, **kwds)

Returns a table projection with analytic / window functions applied. Any arguments can be functions.

Parameters:

exprs : list, default None

kwds : key=value pairs

Returns:

mutated : TableExpr

Examples

>>> expr = (table
            .group_by('foo')
            .order_by(ibis.desc('bar'))
            .mutate(qux=lambda x: x.baz.lag(),
                    qux2=table.baz.lead()))