Skip to content

Yahoo Downloader not working #1319

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

Open
tanobugelli opened this issue Feb 19, 2025 · 5 comments
Open

Yahoo Downloader not working #1319

tanobugelli opened this issue Feb 19, 2025 · 5 comments

Comments

@tanobugelli
Copy link

I've been using FINRL for a while and had no issues downloading data from Yahoo before. For some reason I'm getting this error whenever I try to download anything. Is this something from their end? Image

@HerronYang
Copy link

HerronYang commented Feb 20, 2025

I faced the same issue, and found a solution

  1. upgrade your yfinance package
  2. you will find how to change in yahoodownloader.py file. You just need to add auto_adjust=False for yf.download, because YF.download() has changed argument auto_adjust default to True

@tanobugelli
Copy link
Author

Sorted! Thanks @HerronYang

@Astroyimin
Copy link

I faced one more issue , in.

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

Its return ValueError: Length mismatch: Expected axis has 182 elements, new values have 8 elements.

I check the yahoodownloader.py file, i think the loop for ticker_list return error dataframe format. I add the df.shape to print the information after loop. Its return (94301, 182)

@zhumingpassional
Copy link
Collaborator

pls try the newest version. I updated it.
You can also submit a PR

@vivaaaaaaaa
Copy link

I faced one more issue , in.

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

Its return ValueError: Length mismatch: Expected axis has 182 elements, new values have 8 elements.

I check the yahoodownloader.py file, i think the loop for ticker_list return error dataframe format. I add the df.shape to print the information after loop. Its return (94301, 182)

I face the same problem. I don't know how to solve it. Have you solved this problem?

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

5 participants