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

Pandas options data not working #88

Closed
MathTinker opened this issue Sep 15, 2015 · 1 comment
Closed

Pandas options data not working #88

MathTinker opened this issue Sep 15, 2015 · 1 comment

Comments

@MathTinker
Copy link

I am trying to use get_all_data() method to download options data. I am getting following error:
RemoteDataError: Parsed URL 'http://finance.yahoo.com/q/op?s=SPY' has no rootelement
Actual code:
from pandas.io.data import Options
SPYD = Options('spy', 'yahoo')
data = SPYD.get_all_data()

My pandas version is 0.16.2

@davidastephens
Copy link
Member

Try installing pandas-datareader:

pip install pandas-datareader

Then use the pandas_datareader version of Options

from pandas_datareader.data import Options
SPYD = Options('spy', 'yahoo')
data = SPYD.get_all_data()

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

2 participants