-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[C++][Python] Add division kernel: duration / duration -> float #36789
Comments
randolf-scholz
changed the title
Add division kernel: duration / duration -> float
[C++][Python] Add division kernel: duration / duration -> float
Jul 20, 2023
I'll add a kernel today. |
pitrou
pushed a commit
that referenced
this issue
Jul 25, 2023
### Rationale for this change Support divide(duration, duration), as pandas and numpy already do. ### What changes are included in this PR? Add kernels divide(duration, duration)->float64 and divide_checked(duration, duration)->float64 ### Are these changes tested? Yes ### Are there any user-facing changes? No * Closes: #36789 Authored-by: Jin Shang <shangjin1997@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
R-JunmingChen
pushed a commit
to R-JunmingChen/arrow
that referenced
this issue
Aug 20, 2023
### Rationale for this change Support divide(duration, duration), as pandas and numpy already do. ### What changes are included in this PR? Add kernels divide(duration, duration)->float64 and divide_checked(duration, duration)->float64 ### Are these changes tested? Yes ### Are there any user-facing changes? No * Closes: apache#36789 Authored-by: Jin Shang <shangjin1997@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
loicalleyne
pushed a commit
to loicalleyne/arrow
that referenced
this issue
Nov 13, 2023
### Rationale for this change Support divide(duration, duration), as pandas and numpy already do. ### What changes are included in this PR? Add kernels divide(duration, duration)->float64 and divide_checked(duration, duration)->float64 ### Are these changes tested? Yes ### Are there any user-facing changes? No * Closes: apache#36789 Authored-by: Jin Shang <shangjin1997@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
I confirm I can reproduce this bug. Let's me see how to fix it. |
I've submitted a fix: #39158 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the enhancement requested
Numpy allows division of timedelta64 by timedelta64 types, resulting in plain floating points (units cancel!)
Component(s)
Python
The text was updated successfully, but these errors were encountered: