randolf-scholz opened a new issue, #39156:
URL: https://github.com/apache/arrow/issues/39156

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   ```python
   import pyarrow as pa
   
   pos_one_second = pa.scalar(1, type=pa.duration("us"))  # 1s
   pos_two_second = pa.scalar(2, type=pa.duration("us"))  # 2s
   neg_one_second = pa.scalar(-2, type=pa.duration("us"))  # -1s
   
   print(pa.compute.divide(pos_one_second, pos_one_second))  # 1.0 ✔
   print(pa.compute.divide(pos_two_second, pos_one_second))  # 2.0 ✔
   print(pa.compute.divide(pos_one_second, pos_two_second))  # 0.5 ✔
   print(pa.compute.divide(pos_two_second, pos_two_second))  # 1.0 ✔
   
   print(pa.compute.divide(pos_one_second, pos_one_second))  # 1.0 ✔
   print(pa.compute.divide(neg_one_second, pos_one_second))  # NAN ✘
   print(pa.compute.divide(pos_one_second, neg_one_second))  # NAN ✘
   print(pa.compute.divide(neg_one_second, neg_one_second))  # NAN ✘
   ```
   
   Tested with 14.0.1, first noted here: 
https://github.com/pandas-dev/pandas/issues/56409#issuecomment-1847923279
   
   ### Component(s)
   
   Python


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to