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
np.NINF
To reproduce:
import pyfolio as pf import yfinance as yf history = yf.Ticker("MGK").history("max") returns = history.Close.pct_change() pf.create_returns_tear_sheet(returns, live_start_date="2020-1-1")
Traceback:
Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\FamilyStuff\BudgetFinance\portfolio\env-portfolio\Lib\site-packages\empyrical\stats.py", line 741, in sortino_ratio else downside_risk(returns, required_return, period, annualization) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\FamilyStuff\BudgetFinance\portfolio\env-portfolio\Lib\site-packages\empyrical\stats.py", line 821, in downside_risk np.NINF, ^^^^^^^ File "c:\FamilyStuff\BudgetFinance\portfolio\env-portfolio\Lib\site-packages\numpy\__init__.py", line 414, in __getattr__ raise AttributeError( AttributeError: `np.NINF` was removed in the NumPy 2.0 release. Use `-np.inf` instead.
Additional info:
The text was updated successfully, but these errors were encountered:
Looks like the folks at empyrical-reloaded are already tracking this issue: stefan-jansen/empyrical-reloaded#32
I've installed numpy==1.26.4 and it seems to work fine. This might be a good workaround until empyrical pushes a fix.
Sorry, something went wrong.
No branches or pull requests
Problem Description
To reproduce:
Traceback:
Additional info:
Versions
The text was updated successfully, but these errors were encountered: