Skip to content

Expiration date being parsed incorrectly #207

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
jasonstrimpel opened this issue Jun 21, 2016 · 1 comment
Closed

Expiration date being parsed incorrectly #207

jasonstrimpel opened this issue Jun 21, 2016 · 1 comment

Comments

@jasonstrimpel
Copy link

Expiration dates are being parsed incorrectly.

Example.

The following symbol "IBM160715C00060000" is being parsed as 2015-07-16 (2015/June/16) when it should be parsed as 2016-07-15 (2016/June/15)

In pandas-datareader/pandas_datareader/yahoo/options.py, the to_datetime method call on line 680 should be called as follows:

frame["Expiry"] = to_datetime(frame.Rootexp.str[-6:], yearfirst=True)

to_datetime is defined pandas/pandas/tseries/tools.py on line 171.

@femtotrader
Copy link
Contributor

Thanks @jasonstrimpel
#203 was just merged

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