close
真是後知後覺呀, 看改版有個一年半了~~
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.rolling.html
今天一早試著按以上的程式碼, 發現rolling_mean不見了~
上網查了改成 Series.rolling(self, window, min_periods=None, center=False, win_type=None, on=None, axis=0, closed=None)
df['MA10_talib'] = pd.Series(close).rolling(window=12).mean()
於是這麼輸入就可以了
全站熱搜