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

Yahoo Downloader Not working #1321

Open
Astroyimin opened this issue Feb 25, 2025 · 0 comments
Open

Yahoo Downloader Not working #1321

Astroyimin opened this issue Feb 25, 2025 · 0 comments

Comments

@Astroyimin
Copy link

Describe the bug
Yahoo Downloader is not working in Stock_NeurIPS2018_1_Data.ipynb.

I face the problem in that notebook. When i run

df_raw = YahooDownloader(start_date = TRAIN_START_DATE, end_date = TRADE_END_DATE, ticker_list = config_tickers.DOW_30_TICKER).fetch_data()

It's return error like ValueError: Length mismatch: Expected axis has 182 elements, new values have 8 elements. Then i check the yahoodownloader.py file, and add the df.shape at line 63 to print the information of dataframe after loop of stocks tick. The output is (94301, 182).

I don't know how to change that and i think it's due to the version of yfinance. Does anyone face the same error? Do you have some solution ?

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

1 participant