DataFile.rolling_window(window=7, wrap=True, exclude_centre=False)

Iterate with a rolling window section of the data.

Keyword Arguments
  • window (int) – Size of the rolling window (must be odd and >= 3)

  • wrap (bool) – Whether to use data from the other end of the array when at one end or the other.

  • exclude_centre (odd int or bool) – Exclude the ciurrent row from the rolling window (defaults to False)


ndarray – Yields with a section of data that is window rows long, each iteration moves the marker one row further on.