pmorissette / ffn

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

Getting a runtime error on data.calc_stats() #79

Closed CarterFitz closed 3 years ago

CarterFitz commented 5 years ago

I am using Python 3.7 and I am getting this error when I try to run the calc_stats() method. C:\Python_3.7\lib\site-packages\ffn\core.py:2054: RuntimeWarning: invalid value encountered in minimum negative_returns = np.minimum(returns, 0.) Can you help me out? I really like the library. Thanks.

timkpaine commented 3 years ago

dupe