Skip to content
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

TypeError #986

Open
RobKang1234 opened this issue Jan 11, 2024 · 1 comment
Open

TypeError #986

RobKang1234 opened this issue Jan 11, 2024 · 1 comment

Comments

@RobKang1234
Copy link

My code:
from pandas_datareader import data as web
result = web.DataReader('GOOG', 'yahoo', start='2023-09-10', end='2023-10-10')

ERROR:
Traceback (most recent call last):
File "/Users/robkang/Documents/StrategyResearch/test.py", line 3, in
result = web.DataReader('GOOG', 'yahoo', start='2023-09-10', end='2023-10-10')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/robkang/Documents/StrategyResearch/env/lib/python3.12/site-packages/pandas/util/_decorators.py", line 213, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/robkang/Documents/StrategyResearch/env/lib/python3.12/site-packages/pandas_datareader/data.py", line 384, in DataReader
).read()
^^^^^^
File "/Users/robkang/Documents/StrategyResearch/env/lib/python3.12/site-packages/pandas_datareader/base.py", line 246, in read
df = self._read_one_data(self.url, params=self._get_params(self.symbols))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/robkang/Documents/StrategyResearch/env/lib/python3.12/site-packages/pandas_datareader/yahoo/daily.py", line 151, in _read_one_data
data = j["context"]["dispatcher"]["stores"]["HistoricalPriceStore"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'

@ThierryGirod
Copy link

Having the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants