Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depreciated warning in Section 1 > Recipe 2 #40

Open
sami10007 opened this issue May 29, 2016 · 1 comment
Open

Depreciated warning in Section 1 > Recipe 2 #40

sami10007 opened this issue May 29, 2016 · 1 comment
Labels

Comments

@sami10007
Copy link

Run pd.rolling_mean(df['Berri1'], n).dropna().plot(); and you get


/usr/local/lib/python2.7/dist-packages/ipykernel/__main__.py:6: FutureWarning: pd.rolling_mean is deprecated for Series and will be removed in a future version, replace with 
    Series.rolling(window=15,center=False).mean()

How can you do the replacement with Series.rolling(...).mean()?

@rossant rossant added the update label Jun 4, 2016
@rossant
Copy link
Contributor

rossant commented Jun 4, 2016

Can you try:

df['Berri1'].rolling(window=n).mean().dropna().plot()

(this is untested)

If it works, please feel free to send a Pull Request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants