pmorissette / ffn

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

.calc_stats() return my three errors #153

Open akitxu opened 3 years ago

akitxu commented 3 years ago

Dear all. I am testing this package, which I think is very good to facilitate script construction with less code. In the statement that I show below, I find the following errors.

estadisticos = cotiz_val.calc_stats() estadisticos.display()

`/home/enri/anaconda3/lib/python3.8/site-packages/pandas/core/arraylike.py:358: RuntimeWarning:

divide by zero encountered in log

/home/enri/anaconda3/lib/python3.8/site-packages/pandas/core/arraylike.py:358: RuntimeWarning:

invalid value encountered in log

/home/enri/anaconda3/lib/python3.8/site-packages/ffn/core.py:1376: RuntimeWarning:

invalid value encountered in double_scalars`

I would appreciate your help in reviewing my DataFrame. What can be the cause of each of these errors? What do you suggest I should look for there?

Best regards.