Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

12 month movinf average in python for dataframe

# Calculating the short-window simple moving average
short_rolling = data.rolling(window=20).mean()
short_rolling.head(20)
Source by www.learndatasci.com #
 
PREVIOUS NEXT
Tagged: #month #movinf #average #python #dataframe
ADD COMMENT
Topic
Name
8+7 =