I have a range of dates and a measurement on each of those dates. I\'d like to calculate an exponential moving average for each of the dates. Does anybody know how to do t
May be shortest:
#Specify decay in terms of span #data_series should be a DataFrame ema=data_series.ewm(span=5, adjust=False).mean()