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

コードのWarning #82

Open
drillan opened this issue Oct 4, 2020 · 1 comment
Open

コードのWarning #82

drillan opened this issue Oct 4, 2020 · 1 comment

Comments

@drillan
Copy link
Contributor

drillan commented Oct 4, 2020

コード(ライブラリ)の記法が古くてWarningになる
Lecture 4 Introduction to pandas の例

monthly_prices = prices.resample('M')
/venvs/py35/lib/python3.5/site-packages/ipykernel_launcher.py:2: FutureWarning: .resample() is now a deferred operation
use .resample(...).mean() instead of .resample(...)

現行のpandasのバージョン(0.18.1)ではこうする

monthly_prices = prices.resample('M').mean()
@drillan
Copy link
Contributor Author

drillan commented Oct 4, 2020

原文に忠実にするためにはコードを維持する案もあるが、ユーザ視点ではあるべき姿に修正したほうがよいと思われる。
#80 のように明記して修正する?

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

No branches or pull requests

1 participant