| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/pyarrow.compute.pairwise_diff.html | [Back] [Original] |
Section Navigation
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.
Argument to compute function.
int, default 1Period for applying the period function.
pyarrow.compute.PairwiseOptions, optionalAlternative way of passing options.
pyarrow.MemoryPool, optionalIf not passed, will allocate memory from the default memory pool.
Copyright 2016-2026 Apache Software Foundation.
Apache Arrow, Arrow, Apache, the Apache logo, and the Apache Arrow project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.
Created using Sphinx 9.1.0.
Built with the PyData Sphinx Theme 0.20.0.
| Web Proxy Viewer | New URL | Original Page |