pmorissette / ffn

ffn - a financial function library for Python
pmorissette.github.io/ffn
MIT License
2.03k stars 300 forks source link

resample() error #13

Closed denbjornen closed 6 years ago

denbjornen commented 8 years ago

I'm running python 2.7 and I'm not sure if this has something to do with it.. But I'm having an issue with the "core.py" file. Not sure what part of ffn is calling "core.py" but its having a problem with the resample() function. Apparently the "how" part of the function has been replaced with a new syntax. After looking at the documentation, I was able to fix this problem by navigating to the "core.py" file in ffn of the python folder and change lines 189 & 191 to: (respectively)

self.monthly_prices = obj.resample('M').last()

self.monthly_prices = obj.resample('A').last()

JordanPlatts commented 6 years ago

I think this may be handled now.