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: string indices must be integers #17

Open
raghunathbhandari opened this issue Jul 17, 2023 · 2 comments
Open

TypeError: string indices must be integers #17

raghunathbhandari opened this issue Jul 17, 2023 · 2 comments

Comments

@raghunathbhandari
Copy link

Great Book Thank you for Author, Lot of best wishes !

I am getting an error on the 4th line of the first chapter, any idea ?

from pandas_datareader import data
start_date = '2014-01-01'
end_date = '2018-01-01'
goog_data = data.DataReader('GOOG', 'yahoo', start_date, end_date)

ERROR:

data = j["context"]["dispatcher"]["stores"]["HistoricalPriceStore"]
TypeError: string indices must be integers

@mankic
Copy link

mankic commented Jul 21, 2023

Currently, the pandas-datareader library has an error receiving Yahoo data, which is not yet solved.

Try using the yfinance library.

@mobley-trent
Copy link

You can also use 'stooq' instead of 'yahoo' as the data provider @raghunathbhandari

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

No branches or pull requests

3 participants