-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: conversion precision on Timedeltas #14156
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
Copying from #19680 It happens in this function:
because we round at 6 decimals: pandas/pandas/_libs/tslibs/timedeltas.pyx Lines 210 to 212 in 405ed25
pandas/pandas/_libs/tslibs/timedeltas.pyx Line 234 in 405ed25
Not fully sure why we choose 6 decimals to be allowed, and not 9 in case of 's' (and 6 in case of 'ms', 3 for 'us', ..) |
Isn't this the same as #12690? |
Indeed, will close the other in favor of this one. Thanks for noticing! |
I think this is rounding prematurely, though not entirely sure. Could also just be loss of precision when converting from a float -> int64.
The text was updated successfully, but these errors were encountered: