We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following line in stats.py causes a FutureWarning in recent versions of Pandas (e.g. 2.1):
return _np.product(1 + returns) ** (1 / len(returns)) - 1
This can be resolved by explicitly specifying axis=0:
return _np.product(1 + returns, axis=0) ** (1 / len(returns)) - 1
The text was updated successfully, but these errors were encountered:
Update stats.py
53c4694
Fix FutureWarning with DataFrame.prod(), closes ranaroussi#308
This is superceded by #335
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The following line in stats.py causes a FutureWarning in recent versions of Pandas (e.g. 2.1):
This can be resolved by explicitly specifying axis=0:
The text was updated successfully, but these errors were encountered: