Skip to content

Options to_*() is exporting the expiry date incorrectly #191

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

Closed
vishalapte opened this issue Mar 15, 2016 · 1 comment
Closed

Options to_*() is exporting the expiry date incorrectly #191

vishalapte opened this issue Mar 15, 2016 · 1 comment

Comments

@vishalapte
Copy link

In [1]: from pandas_datareader import data as pddata

In [2]: foo = pddata.Options('aapl', 'yahoo')

In [3]: bar = foo.get_all_data()

In [4]: bar.to_csv()

'Strike,Expiry,Type,Symbol,Last,Bid,Ask,Chg,PctChg,Vol,Open_Int,IV,Root,IsNonstandard,Underlying,Underlying_Price,Quote_Time
10.0,2017-06-16,call,AAPL160617C00010000,0.0,91.0,91.45,0.0,0.0,0,0,0.0,AAPL,False,AAPL,102.52,2016-03-15 16:00:00
10.0,2017-06-16,put,AAPL160617P00010000,0.0,0.0,0.03,0.0,0.0,0,0,1.5938,AAPL,False,AAPL,102.52,2016-03-15 16:00:00
12.5,2017-06-16,call,AAPL160617C00012500,0.0,88.5,88.95,0.0,0.0,0,0,0.0,AAPL,False,AAPL,102.52,2016-03-15 16:00:00
...

ERROR: 20DD-MM-YY is erroneously being exported as Expiry instead of 20YY-MM-DD. The error is consistent across to_csv(), to_json, to_dict(), etc.

In [1]: import pandas_datareader

In [2]: pandas_datareader.version
Out[2]: '0.2.1'
@davidastephens
Copy link
Member

This looks to be fixed with #244. Please reopen if not.

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