tokyoquantopian / quantopian-doc-ja

Creative Commons Attribution 4.0 International
8 stars 1 forks source link

コードのWarning #82

Open drillan opened 4 years ago

drillan commented 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()
drillan commented 4 years ago

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

80 のように明記して修正する?