Skip to content

Conversation

@wesm
Copy link
Member

@wesm wesm commented Jun 23, 2020

I also did a little bit of cleaning, moving some stuff into arrow::compute::internal.


template <typename ArrowType>
class TestBinaryArithmetics : public TestBase {
class TestBinaryArithmetic : public TestBase {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"arithmetics" is not correct, so many of the changes in this file are just this rename

@wesm
Copy link
Member Author

wesm commented Jun 23, 2020

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
]

@github-actions
Copy link

@wesm
Copy link
Member Author

wesm commented Jun 24, 2020

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant