pitrou commented on issue #47400:
URL: https://github.com/apache/arrow/issues/47400#issuecomment-3266407375

   Also, we should be careful to follow Pandas' logic when adding/subtracting a 
mixed interval:
   ```python
   >>> end = begin + pd.DateOffset(days=1, hours=24)
   >>> end - pd.DateOffset(days=1, hours=24) == begin
   True
   
   >>> end == begin + pd.DateOffset(days=1) + pd.DateOffset(hours=24)
   True
   >>> end == begin + pd.DateOffset(hours=24) + pd.DateOffset(days=1)
   False
   
   >>> end - pd.DateOffset(days=1) - pd.DateOffset(hours=24) == begin
   False
   >>> end - pd.DateOffset(hours=24) - pd.DateOffset(days=1) == begin
   True
   ```


-- 
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