pyarrow.compute.subtract

pyarrow.compute.subtract(x, y, *, memory_pool=None)

Subtract the arguments element-wise.

Results will wrap around on integer overflow. Use function “subtract_checked” if you want overflow to return an error.

Parameters
  • x (Array-like or scalar-like) – Argument to compute function

  • y (Array-like or scalar-like) – Argument to compute function

  • memory_pool (pyarrow.MemoryPool, optional) – If not passed, will allocate memory from the default memory pool.