machine-learning-for-trading icon indicating copy to clipboard operation
machine-learning-for-trading copied to clipboard

01_pandas_datareader_demo.ipynb from chapter 2

Open sgjohnson1981 opened this issue 2 years ago • 1 comments

Describe the bug A brief description of the bug and in which notebook/script it lives. In the notebook located at this issue's title, pandas.datareader for yahoo finance is broken. Changing FB (which no longer exists as a ticker) to META didn't make any difference. On both occasions, the following error is thrown: string indices must be integers I noticed FB is also fetched under the Quandl section, but I didn't complete the entire notebook since I noticed it seems nothing gets saved to disk to be used in later exercises.

To Reproduce

  • In case you are not running the current version of the notebook/script as found on GitHub. Ran as is.

Changed the code as below. Seems to work fine. start = datetime(2014, 1, 1) end = datetime(2017, 5, 24)

yahoo= yf.download('META', start=start, end=end) yahoo.info()

sgjohnson1981 avatar Mar 17 '23 18:03 sgjohnson1981

I checked the module I think yahoo getting to paid model:

https://github.com/pydata/pandas-datareader/issues/962

NicoNicoNico123 avatar Jun 14 '23 09:06 NicoNicoNico123

Please create an issue in the pandas-datareader repo if this problem persists.

stefan-jansen avatar Aug 04 '23 14:08 stefan-jansen