Re: arithmetic manipulation of PyArrow numeric arrays

2022-06-07 Thread Yaron Gvili
Perfect, thanks. Yaron. From: Will Jones Sent: Monday, June 6, 2022 6:06 PM To: dev@arrow.apache.org Subject: Re: arithmetic manipulation of PyArrow numeric arrays Hi Yaron, Currently, arithmetic operators are exposed through the pyarrow.compute module

Re: arithmetic manipulation of PyArrow numeric arrays

2022-06-06 Thread Will Jones
Hi Yaron, Currently, arithmetic operators are exposed through the pyarrow.compute module: import pyarrow as pa import pyarrow.compute as pc arr = pa.array([1, 2, 3]) pc.add(arr, 2) # Add 2 pc.multiply(arr, 20) # Multiple by 20 I actually just opened an issue on making this more convenient [1].