Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

12 month movinf average in python for dataframe

# Calculating the long-window simple moving average
long_rolling = data.rolling(window=100).mean()
long_rolling.tail()
Source by www.learndatasci.com #
 
PREVIOUS NEXT
Tagged: #month #movinf #average #python #dataframe
ADD COMMENT
Topic
Name
3+7 =