-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: wrong parsing of microseconds with format arg (#4152) #4166
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
BUG: wrong parsing of microseconds with format arg (#4152) #4166
Conversation
I added a test based on the reported bug in the issue, but I don't have experience with writing tests. Is it OK like this? |
Maybe better to do (will also give nicer error message):
|
that is fine there is another issue in processing to_datetime |
a Timestamp will compare to a datetime ok |
@jreback my bad! |
OK! @jreback What do you mean with another issue? |
but unrelated to the bug you are fixing..... going to merge yours and then fix the other issue |
you can reproduce if you pass a list of values (rather than a single value) it will ignore the format |
@jorisvandenbossche I take that back....looks like your PR fixes this.... can you add a release notes mention? (then squash together if you can)...thanks |
OK, I added something to the release notes. With 'squaqh together', do you mean putting it together in one commit? I looked at the PR #4167 you mentioned, but I doubt that this PR fixes the test you added there ... (this one only changed something that had to do with microseconds) |
@jreback OK, I also put it in one commit. |
lovely! Excellent work! |
BUG: wrong parsing of microseconds with format arg (#4152)
@jorisvandenbossche 2nd that! this really does fix the error, my PR just makes the test more consistent (and is indepdent of what you did) thanks again |
this introduced another bug it seems, see #4179 |
@cpcloud Strange, it is exactly the test that I introduced in this PR and which should be fixed by this PR that is failing. Did you rebuild the cython files? |
oh gosh duh. sorry. closing the issue |
Closes #4152.
fraction
was already in microseconds, so no need to multiply it with 1000000, which caused faulty parsing of dates with microseconds.With this commit I get:
for