-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Garbled dates in pandas 0.18.0 #12808
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
Comments
The issue is actually with |
this is probably but this is a datareader issue. |
I already fixed pandas: #12731 |
It actually isn't a datareader issue but, as you surmized a python-dateutil issue. I'm going to file it with them. |
@aisthesis but, |
FYI, the issues with the |
Actually, per the other discussion, I didn't realize that some people seem to have been counting on the bug behavior (I didn't realize that one would specify |
@pganssle yeah I mainly adjusted some of our tests to match what dateutil is doing. We use dateutil only as a fallaback or if |
@jreback Yes, that's understandably confusing. When using pandas, I tend to use per-column bound I'm hoping that resolving dateutil/dateutil#125 (plus dateutil/dateutil#214) will be of some help here. I've long felt that the "black box" nature of the parser is causing the growth of an unpleasantly complicated set of toggles to tell the parser how to handle various ambiguities, particularly because we only return "here's the date I found" rather than "here's the date I found - it only had a year and a month, is that what you wanted?" |
Using pandas 0.18.0 and pandas-datareader 0.2.1:
The above expiries are non-sensical and are the result of confusing the day of the month with the year. Using pandas 0.17.1 and pandas-datareader 0.2.1, I correctly get:
The relevant code seems to be run by
pandas.io.parsers.TextParser
, but I haven't tracked it further.Cf. pydata/pandas-datareader#193 and GriffinAustin/pynance#28
The text was updated successfully, but these errors were encountered: