-
Notifications
You must be signed in to change notification settings - Fork 684
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
Datareader doesn't download the desired samples as instructed #401
Comments
Anyway to slice the sample data? Is it possible instead of downloading whole year of data? |
The temporary problem with specifying dates is diagnosed here: #394 (comment) Getting more data than you need should not be a major problem with pandas, e.g. use
to approximate 3 months of daily data. |
I am doing this to filter for specific dates df = df_reader.to_frame(filter_observations=False) df[(df.index.get_level_values('Date')>='2017-09-21') & (df.index.get_level_values('Date')<='2017-09-22')] |
@i-frost as of v0.20.1 Panel is deprecated: https://pandas.pydata.org/pandas-docs/stable/whatsnew.html#whatsnew-0200-api-breaking-deprecate-panel and thus ".to_frame". For contiguous dates, the easier expression would be: |
Hey @rsvp, I am getting a Panel back from the reader call should it be a MultiIndex instead? pd.version
|
Hi, data=web.DataReader(stocks, data_source='yahoo', start=start_date, end=end_date)['Adj Close'] please help me with this issue. |
This is not fixable. Yahoo is totally broken until someone figures out a way to rewrite it from scratch using a different method. |
So can you please suggest some alternative? |
You can manually download data from Yahoo in the browser. Or you could see if the data you need is available from one of the other sources (e.g., Morningstar, IEX, etc.). AFAIK there is no access to Yahoo from Python that works now. |
thanks sir... |
Hi, I would like to download only the stock price data for 3 months from Google Finance, but it keeps providing me data for one year. How do I slice the data I want or re-download the data I want?
The text was updated successfully, but these errors were encountered: