ibis.trailing_range_window

ibis.trailing_range_window(preceding, order_by, group_by=None)

Create a trailing time window for use with aggregate window functions.

Parameters
precedingfloat or expression of intervals, i.e.

ibis.interval(days=1) + ibis.interval(hours=5)

order_byexpressions, default None

For analytic functions requiring an ordering, specify here, or let Ibis determine the default ordering (for functions like rank)

group_byexpressions, default None

Either specify here or with TableExpr.group_by

Returns
Window