EXPAND ALL
  • Home

DataFrame.rolling

Groups the data by rolling windows.

Rolls up data into groups based on the rolling window that it belongs to. Used to define window aggregates, the streaming analog of batch aggregates.

Arguments

NameTypeDescription
windowpx.Durationthe size of the rolling window.

Returns

px.DataFrame: DataFrame grouped into rolling windows. Must apply either a groupby or an aggregate on the returned DataFrame.

Examples

df = px.DataFrame('process_stats')
df = df.rolling('2s').agg(...)

This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.