wesm commented on pull request #7530:
URL: https://github.com/apache/arrow/pull/7530#issuecomment-648482567


   Example use in Python:
   
   ```
   In [14]: arr = pa.array(pd.date_range('2000-01-01', periods=20))             
                                                                            
   
   In [15]: arr2 = pa.array(pd.date_range('2000-01-10', periods=20))            
                                                                            
   
   In [16]: pc.subtract(arr, arr2)                                              
                                                                            
   Out[16]: 
   <pyarrow.lib.DurationArray object at 0x7fc0005de0a8>
   [
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000,
     -777600000000000
   ]
   ```


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to