ibis.trailing_window(periods, group_by=None, order_by=None)

Create a trailing window for use with aggregate window functions.


periods : int

Number of trailing periods to include. 0 includes only the current period

group_by : expressions, default None

Either specify here or with TableExpr.group_by

order_by : expressions, default None

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


win : ibis Window