pmorissette / ffn

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

Small fixes: return_table #3

Closed vfilimonov closed 9 years ago

vfilimonov commented 9 years ago

Two fixes for calculation of return_table:

  1. Assignment of column names raises an exception in case of empty return_table (introduced by #2)
  2. Calculation of return_table raises ZeroDivisionError in case when first return (p[0]) is 0
pmorissette commented 9 years ago

Thanks again Vladimir!