J'essaie de trouver la corrélation de 5 périodes entre les colonnes ['High'] et ['Low'].Erreur Msg: remplacer par Series.rolling (window = 5) .corr (other = <Series>)
je parviens à calculer, mais il y a une erreur:
FutureWarning: pd.rolling_corr is deprecated for Series and will be removed in a future version, replace with Series.rolling(window=5).corr(other=)
ai essayé de le remplacer, mais cela ne fonctionne pas. De l'aide?
import pandas as pd
df_Gold = pd.read_csv('GoldData.csv')
df_Gold['High_Low'] = pd.rolling_corr(df_Gold['High'],df_Gold['Low'],5)
print(df_Gold.tail())
http://pandas.pydata.org/pandas-docs/version/0.17.0/ généré/pandas.rolling_corr.html – Wen