change:

moving_avg = pd.rolling_mean(ts_log,12)

to:

moving_avg = ts_log.rolling(12).mean()

相关文章:

  • 2022-01-06
  • 2021-10-10
  • 2021-12-24
  • 2021-09-28
  • 2021-08-28
  • 2021-05-23
  • 2021-10-07
  • 2021-12-31
猜你喜欢
  • 2021-08-30
  • 2022-12-23
  • 2021-10-09
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案