-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH/COMPAT: update tests for dateutil 2.5.3 #12951
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
Conversation
so we might want to ban 2.5.2 from being accepted in pandas because it has a bug in the dayfirst/yearfirst logic, though it will raise an error (rather than give incorrect results). Though its an edge case. |
How about showing a warning? |
@TomAugspurger @jorisvandenbossche comments? (or +1 ok too: :) |
As I expressed (I think) my feeling about this in the previous discussions, I am (in principle) -1 on the addition of dayfirst/yearfirst to |
|
||
# OK | ||
# 2.5.1 10-11-12 [dayfirst=0, yearfirst=0] -> 2012-10-11 00:00:00 | ||
# 2.5.2 10-11-12 [dayfirst=0, yearfirst=1] -> 2012-10-11 00:00:00 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the yearfirst be 0 here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what you mean, this is just printing out the 4 combinations of booleans (True/False).
@jorisvandenbossche IIRC you were not -1, but indifferent. But I dont' see why we are not compat, it just causes even more confusion. Yes this mainly fixes tests, but to be honest. Having |
…s-dev#12944 can resolve" This reverts commit 1617244.
TST: fix up python-dateutil compat for 2.5.3, xref pandas-dev#12944
ok I took |
@jreback sorry, late reply. I was maybe indeed more indifferent, anyway, you already merged now. It would maybe indeed be more easy (implementation wise) that |
@jorisvandenbossche yeah, I think would have to add thanks for the comments. |
closes #12944
so this fixes the compat with all dateutils in the test suite
add the
dayfirst
andyearfirst
args toTimestamp
. This make testing and compat a loteasier. xref discussion in #7599 where we didn't implement it, though the feeling was sort of +0.