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
pandas_webreader can not be used #173
Comments
this is a standalone project available at https://github.com/pydata/pandas-datareader You might install latest version from source (not from pip) |
@femtotrader I think that's what he's already using. @timinGo What's the error? You should be able to just feed in your own data. |
@twiecki import pandas_datareader.data as web
pan = web.DataReader(list(ticker_sector.keys()), "google", '2014-12-01') As I am trying to understand and modify some parts of codes, it is might be useful for me to get views from data structure. |
@timinGo , Are you transposing the panel after reading the data from Google? import pandas_datareader.data as web
pan = web.DataReader(ticker_sector.keys(), "yahoo", '2014-12-01')
pan = pan.transpose(2,1,0) |
My mistake! @twiecki I shouldn't send email during holidays before going to "playa". But my advice to use latest development version still apply until 0.5.0 is not released see pydata/pandas-datareader#371 About Panel, be aware of depreciation see http://pandas-docs.github.io/pandas-docs-travis/whatsnew.html#whatsnew-0200-api-breaking-deprecate-panel and pydata/pandas-datareader#297 |
I am pretty sure this trouble is absolutely not about panel and which version problem. |
@timinGo, the yahoo finance API was discontinued by Yahoo. I meant to put "google" in the code snippet above. The Google API should work although I noticed there are some bad data points. That said, it should work fine for the alphalens example. import pandas_datareader.data as web
pan = web.DataReader(['AAPL', 'GOOGL'], "google", '2014-12-01')
pan = pan.transpose(2,1,0)
pan.loc[:,:,'Open'].head() This code outputs:
|
@MichaelJMath |
My apologies. I didn't catch on that you are in China. Are you able to access Quandl by any chance? |
@MichaelJMath I think it might be works, just now checked web browser directly access fine. |
I understand from here and here that yahoo "API endpoint has changed and a patch has been made but hasn't been merged to the master branch of pandas-datareader yet". So it should be just a temporarily issue. If you can use google, then use google in the meanwhile, otherwise there are proposed workarounds in the links above. I am closing this issue soon, because this is not Alphalens related. Feel free to re-open it if you find Alphalens related issues. |
@luca-s luca-s |
I am trying to follow the experiements to study alphalens.
The problem is
and
always can not be used,
is that possible to given a data file directly?
Thanks a lot!
The text was updated successfully, but these errors were encountered: