You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
valley = np.argmin(underwater) # end of the period
to:
valley = underwater.idxmin() # end of the period
appears to fix the problem. I put some simple logs to confirm that it works for what I was running through it but I have zero confidence that I know enough about what's going on to put my name on a pull request.
Can someone pull in the request? Thanks.
New numpy already changed the behaviour to returning positional index. Should be a quick fix by using idxmin or adding something like below to be backward compatible
if isinstance(valley, int): valley = underwater.index[valley]
Problem Description
I get FutureWarning: The current behaviour of 'Series.argmin' is deprecated, use 'idxmin' instead. when running pyfolio using latest numpy.
Please provide the full traceback:
Versions
The text was updated successfully, but these errors were encountered: