[ Web Proxy ]
URL:
Viewing: https://arrow.apache.org/docs/python/generated/pyarrow.compute.pairwise_diff.html [Back]  [Original]

pyarrow.compute.pairwise_diff — Apache Arrow v25.0.1
Back to top
Search the docs ...:

pyarrow.compute.pairwise_diff#

pyarrow.compute.pairwise_diff(input, /, period=1, *, options=None, memory_pool=None)#

Compute first order difference of an array.

Computes the first order difference of an array. It internally calls the scalar function subtract to compute differences, so its behavior and supported types are the same as subtract. The period can be specified in PairwiseOptions.

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

Parameters:
inputArray-like

Argument to compute function.

periodint, default 1

Period for applying the period function.

optionspyarrow.compute.PairwiseOptions, optional

Alternative way of passing options.

memory_poolpyarrow.MemoryPool, optional

If not passed, will allocate memory from the default memory pool.


Web Proxy Viewer  |  New URL  |  Original Page