cudf.Series.pct_change#

Series.pct_change(periods=1, fill_method='ffill', limit=None, freq=None)#

Calculates the percent change between sequential elements in the Series.

Parameters
periodsint, default 1

Periods to shift for forming percent change.

fill_methodstr, default ‘ffill’

How to handle NAs before computing percent changes.

limitint, optional

The number of consecutive NAs to fill before stopping. Not yet implemented.

freqstr, optional

Increment to use from time series API. Not yet implemented.

Returns
Series