-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
API: properly box numeric timedelta ops on Series (GH4984) #4985
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
|
||
# coerce float to results | ||
if is_float(result): | ||
result = int(result) |
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.
is the float
value here somehow guaranteed to not have a fractional part? seems strange to just smash it to int
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.
ah just read your comment in the issue thread
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.
we'll have to revisit this in the future if a finer timescale is desired
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.
at worse it kills a fractional ns...and that is below our precision anyhow
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.
yep
maybe a couple small examples in |
yep....pusing in a second |
API: properly box numeric timedelta ops on Series (GH4984)
closes #4984