cudf.core.groupby.DataFrameGroupBy.pct_change#
- DataFrameGroupBy.pct_change( )[source]#
Calculates the percent change between sequential elements in the group.
- Parameters:
- periodsint, default 1
Periods to shift for forming percent change.
- fill_methodNone
Must be None.
- freqstr, optional
Increment to use from time series API. Not yet implemented.
- Returns:
- Series or DataFrame
Percentage changes within each group