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

Create a trailing window for use with aggregate window functions.

rows : int

Number of trailing rows to include. 0 includes only the current row

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