rolling#

cudf._lib.pylibcudf.rolling.rolling_window(signatures, args, kwargs, defaults, _fused_sigindex={})#

Perform a rolling window operation on a column

For details, see cudf::rolling_window documentation.

Parameters:
sourceColumn

The column to perform the rolling window operation on.

preceding_windowUnion[Column, size_type]

The column containing the preceding window sizes or a scalar value indicating the sizes of all windows.

following_windowUnion[Column, size_type]

The column containing the following window sizes or a scalar value indicating the sizes of all windows.

min_periodsint

The minimum number of periods to include in the result.

aggAggregation

The aggregation to perform.

Returns:
Column

The result of the rolling window operation.