Skip to main content

Module to compute the moving average of a list. For example:

from movingaverage import movingaverage print list(movingaverage([1,2,3,4,5,6], 3)) >>> [2,3,4,5]

movingaverage(data, sample_size):

Return the moving averages of the data, with a window size of sample_size. sample_size must be an integer greater than 0.

Release history Release notifications | RSS feed

This release

2.00 This release

1.00

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page