📜  python 绘制移动平均线 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:20.781000             🧑  作者: Mango

代码示例1
#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()