-
Notifications
You must be signed in to change notification settings - Fork 680
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
get_nasdaq_symbols() is failing today. API endpoint problem? #970
Comments
`import pandas_datareader.data as web import pandas as pd import datetime as dt df = web.DataReader('GE', 'yahoo', start='2019-09-10', end='2019-10-09') df.head() ~\anaconda3\envs\Machine-Learning-Environment\lib\site-packages\pandas\util_decorators.py in wrapper(*args, **kwargs) ~\anaconda3\envs\Machine-Learning-Environment\lib\site-packages\pandas_datareader\data.py in DataReader(name, data_source, start, end, retry_count, pause, session, api_key) ~\anaconda3\envs\Machine-Learning-Environment\lib\site-packages\pandas_datareader\base.py in read(self) ~\anaconda3\envs\Machine-Learning-Environment\lib\site-packages\pandas_datareader\yahoo\daily.py in _read_one_data(self, url, params) TypeError: string indices must be integers |
same problem for me! |
I found that it works with (pandas 1.5.3, pandas-datareader 0.10.0) but not with (pandas 2.0.3, pandas-datareader 0.10.0). Consider the following environment files
Create the respective environments with
Sample code works with test_pandas_153 environment
The same code does not work with test_pandas_203 environment
|
I'm facing this issue too. How would one go about correcting either the get_nasdaq_symbols() or the read_csv() scripts to make this work again? |
You can fix the error locally as follows: In pandas_datareader/nasdaq_trader.py, change
to
That is explicitly specify the parameter name ("sep") when calling read_csv. FWIW, @FidoDido1982 raised a pull request https://github.com/pydata/pandas-datareader/pull/968/files for this and it is merged into the main branch. If and when a new version of pandas-datareader is released we should be good, I think. |
Wow, thank you so much. This fixed it! |
I have been using this method daily for the last few weeks, so I know it worked on Friday. Below is the min code to cause the error. I am using python 3.11.3 and jupyter notebooks.
The text was updated successfully, but these errors were encountered: