Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python plotting moving average

#Plot the moving average that is the result of the rolling window
r90 = data.rolling(window=90).mean() #<---- Moving Average
data.join(r90.add_suffix(' MA 90')).plot(figsize=(8,8))
plt.show()
 
PREVIOUS NEXT
Tagged: #python #plotting #moving #average
ADD COMMENT
Topic
Name
8+1 =