0

I have been trying to get the exponentially weighted running mean for a series of mean daily outdoor temperatures (temp_series), defined as follows: enter image description here

I would like to use a value of alpha=0.8 and input a custom period of days. I have tried using:

trm = temp_series.ewm(alpha=0.8).mean()

and

trm = df_wea_dd.ewm(alpha=0.8, min_periods=30, adjust=False).mean()

but the values I obtain are not reliable (I have checked using excel for a period of 30 days). What am I doing wrong?

Andreuccio
  • 1,053
  • 2
  • 18
  • 32

0 Answers0