Closed thlautenschlaeger closed 1 year ago
Then my 2cents would be that your PR would just hide a potentially larger problem instead of resolving it. My first guess would be that either the problem is coming from a bug in a version of pandas (check which version you are using ?), or something weird is happening in the background. The original authors intended to deprecate all these functions in favor of the empyrical package functions. So it's not impossible that a few things have been overlooked.
Closing for now absent further activity.
I am not able to reproduce it at the moment but in some cases the line
valley = underwater.idxmin()
assigns the integer position to valley instead of the datetime index. This assignment caused crashing when plotting the biggest drawdowns. The crash happened at:in timeseries.py in the method: gen_drawdown_table()