pmorissette / ffn

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

BUG: calc_sharpe only when standard deviation is not zero #30

Closed pratapvardhan closed 6 years ago

pratapvardhan commented 6 years ago

Current tests tests.test_core.test_calc_stats is failing (divide by zero exception). This PR fixes it. This would potential also take care of #14 and #23

JordanPlatts commented 6 years ago

I think this is handled now.

Let me know if I missed anything.

Thanks for contributing!