Column.diff
Series diff(long n = 1)The positional difference (ADR-2026-10-23-08): x[i] - x[i - n], null for the first n slots and wherever either operand slot is null. Numeric kinds only (temporal arithmetic stays rejected); integer results wrap in the physical type; length is preserved.
Parameters
n | the lag (at least 1) |
Returns
the differenced Series.
Throws
DataFrameException for
n < 1 or non-numeric kinds.