rolling(window, min_periods=None, center=False, closed='right')
A rolling window of size ‘window’, by default right aligned.
To use grouping as well, first call
group_by() on this frame and call rolling on the result.
window(int) – the window size.
min_periods(Optional[int]) – the min amount of rows included in the window before an actual value is returned.
center(bool) – center the result, or align the result on the right.
closed(str) – make the interval closed on the ‘right’, ‘left’, ‘both’ or ‘neither’ endpoints. Defaults to ‘right’, and the rest is currently unsupported.
a new DataFrame object with the
group_by attribute set with a
method parameters as supported by pandas, are currently not
The DataFrame is required to be sorted in order to avoid non-determinist results.
Exception – If DataFrame.order_by is empty.