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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Ticker.history() now fails:
Ticker.history()
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Input In [4], in <module> ----> 4 amzn_df = amzn.history(period="max") 5 msft_df = msft.history(period="max") File ~/.local/share/virtualenvs/finance-demos-0fMGKKIC/lib/python3.9/site-packages/yfinance/base.py:295, in TickerBase.history(self, period, interval, start, end, prepost, actions, auto_adjust, back_adjust, proxy, rounding, tz, timeout, **kwargs) 292 df["Stock Splits"].fillna(0, inplace=True) 294 # index eod/intraday --> 295 df.index = df.index.tz_localize("UTC").tz_convert( 296 data["chart"]["result"][0]["meta"]["exchangeTimezoneName"]) 298 if params["interval"][-1] == "m": 299 df.index.name = "Datetime" AttributeError: 'Index' object has no attribute 'tz_localize'
Pinning pandas to 1.3.5 makes the error go away.
The text was updated successfully, but these errors were encountered:
Closing, as this duplicates #937.
Sorry, something went wrong.
No branches or pull requests
Ticker.history()
now fails:Pinning pandas to 1.3.5 makes the error go away.
The text was updated successfully, but these errors were encountered: