Problem description

It is common to difference a time series multiple times to stationarize it. I found surprinsing pandas, which is time-series friendly, does not implement this already and requires to iteratively apply pandas.Series.diff()

Expected Begaviour

Same as np.gradient()

Comment From: jorisvandenbossche

You can use np.gradient if you want this? Note that it is not the same as applying .diff a few times.