Open drillan opened 4 years ago
コード(ライブラリ)の記法が古くて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()
原文に忠実にするためにはコードを維持する案もあるが、ユーザ視点ではあるべき姿に修正したほうがよいと思われる。
コード(ライブラリ)の記法が古くてWarningになる Lecture 4 Introduction to pandas の例
現行のpandasのバージョン(0.18.1)ではこうする