Skip to content
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

Stop using pandas.Timedelta (fixes #1482) #1483

Merged
merged 1 commit into from
Sep 8, 2022
Merged

Stop using pandas.Timedelta (fixes #1482) #1483

merged 1 commit into from
Sep 8, 2022

Conversation

matta
Copy link
Contributor

@matta matta commented Sep 8, 2022

The pandas.Timedelta class truncates to integral nanoseconds, which throws away sub-nanosecond precision present in benchmark JSON. Switch to floating point multiplication, which preserves it.

The pandas.Timedelta class truncates to integral nanoseconds, which throws
away sub-nanosecond precision present in benchmark JSON.  Switch to
floating point multiplication, which preserves it.
Copy link
Collaborator

@LebedevRI LebedevRI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@LebedevRI LebedevRI merged commit becf80f into google:main Sep 8, 2022
@matta matta deleted the compare_precision branch September 8, 2022 17:52
dmah42 pushed a commit that referenced this pull request Sep 14, 2022
The pandas.Timedelta class truncates to integral nanoseconds, which throws
away sub-nanosecond precision present in benchmark JSON.  Switch to
floating point multiplication, which preserves it.

Fixes #1482
Tentatively fixes #1477.
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

Successfully merging this pull request may close these issues.

2 participants