Skip to content

Instantly share code, notes, and snippets.

@qwadratic
qwadratic / moving_avg.py
Last active January 22, 2017 11:10
moving average
import sys
import gspread
from oauth2client.service_account import ServiceAccountCredentials
import ConfigParser
def moving_average(seq, window_length):
list_avg = []
_seq = map(float, seq)
_sum = 0