-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
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
Pandas deprecation warning #1837
Comments
In my case:
|
I have this issue and it is preventing me from using the df.download() function. |
same problem, after upgrade pandas
|
Workaround: add the following before using yfinance (i.e. in import warnings
warnings.simplefilter(action="ignore", category=FutureWarning) |
Maybe best to be just a little bit more specific, so that warnings for the rest of your code are not hidden:
or ultra specific:
|
Fixed in |
Describe bug
venv/lib/python3.10/site-packages/yfinance/utils.py:775: FutureWarning: The 'unit' keyword in TimedeltaIndex construction is deprecated and will be removed in a future version. Use pd.to_timedelta instead.
df.index += _pd.TimedeltaIndex(dst_error_hours, 'h')
venv/lib/python3.10/site-packages/yfinance/base.py:291: FutureWarning: 'T' is deprecated and will be removed in a future version, please use 'min' instead.
Simple code that reproduces your problem
N/A
Debug log
N/A
Bad data proof
No response
yfinance
version0.2.36
Python version
3.10
Operating system
Linux
The text was updated successfully, but these errors were encountered: