DataSet.rolling_mean(window=None, align='right')#

rolling_mean: Calculate a rolling mean based on a window

  • window (int) – The size of the window for the calculation of the rolling mean

  • align (str) – This determines whether the output time is at the left, centre or right hand side of the time window. Options are “left”, “centre” and “right”


If you wanted to calculate a rolling mean with the mean calculated over every 10 time steps, do the following:

>>> ds.rolling_mean(10)