bigframes.pandas.Series.pct_change#
- Series.pct_change(periods:int=1)→Series[source]#
Fractional change between the current and a prior element.
Computes the fractional change from the immediately previous row bydefault. This is useful in comparing the fraction of change in a timeseries of elements.
Note
Despite the name of this method, it calculates fractional change(also known as per unit change or relative change) and notpercentage change. If you need the percentage change, multiplythese values by 100.
- Parameters:
periods (int,default 1) – Periods to shift for forming percent change.
- Returns:
The same type as the calling object.
- Return type:
On this page