Open euribate opened 4 years ago
Been having the same error for quite a while
Python 3.8.2 numpy 1.19.1 pyfolio 0.9.2 empyrical 0.5.3 pandas 1.0.5
Same issue--would be great if this could be resolved!
With @twiecki gone, maintenance for pyfolio is going to be an issue now.
fixed this by changing line 893 in file timeseries.py
valley = underwater.index[np.argmin(underwater)] # end of the period
In function: def get_max_drawdown_underwater(underwater):
this line return array index(as int), but not array value:
valley = np.argmin(underwater)
so we need to change return type:
return peak, valley, recovery
to
return peak, underwater[valley:].index[0], recovery
I tried reinstalling directly from git, and that fixed this issues for me
pip uninstall pyfolio
pip install git+https://github.com/quantopian/pyfolio
I tried reinstalling directly from git, and that fixed this issues for me
pip uninstall pyfolio
pip install git+https://github.com/quantopian/pyfolio
It works, thanks ~
Problem Description
I got the following errorn when I run create_full_tear_sheet from pyfolio. can anybody help as I cannot use Pyfolio.
The following are the packages version I have installed: python 3.6 pandas 1.0.5 numpy 1.18.5 pyfolio 0.9.2 empyrical 0.5.3
the following is the full error I got AttributeError Traceback (most recent call last)