pct_change
Calculate percentage change between consecutive numbers in a numeric column.
For a pair of consecutive numbers x1, x2 in the input column, calculates the difference between x2 and x1
expressed as a percentage of x1, i.e. 100 * (x2 - x1) / x1
.
Was this page helpful?