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
I had a same issue. Just change line 96 in "stats.py"
return _np.product(1 + returns) ** (1 / len(returns)) - 1
-> return _np.prod(1 + returns) ** (1 / len(returns)) - 1
numpy.product was deprecated in numpy 1.25, with this PR and removed in numpy 2.x.
This should be a quick and simple find all and replace, since np.prod has been around since at least numpy 1.7 and the requirements for this package ask for:
numpy only has function as of np.prod instead of np.product
Which version of numpy is np.product available in?
The text was updated successfully, but these errors were encountered: