pandas.core.groupby.DataFrameGroupBy.pct_change
- 
DataFrameGroupBy.pct_change
- 
Percent change over given number of periods. Parameters: periods : int, default 1 Periods to shift for forming percent change fill_method : str, default ‘pad’ How to handle NAs before computing percent changes limit : int, default None The number of consecutive NAs to fill before stopping freq : DateOffset, timedelta, or offset alias string, optional Increment to use from time series API (e.g. ‘M’ or BDay()) Returns: chg : NDFrame NotesBy default, the percentage change is calculated along the stat axis: 0, or Index, forDataFrameand 1, orminorforPanel. You can change this with theaxiskeyword argument.
    © 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
    https://pandas.pydata.org/pandas-docs/version/0.20.3/generated/pandas.core.groupby.DataFrameGroupBy.pct_change.html