@Substitution(name='<STR_LIT>')<EOL><INDENT>@Appender(_common_see_also)<EOL>def pct_change(self, periods=<NUM_LIT:1>, fill_method='<STR_LIT>', limit=None, freq=None,<EOL>axis=<NUM_LIT:0>):<DEDENT>
if freq is not None or axis != <NUM_LIT:0>:<EOL><INDENT>return self.apply(lambda x: x.pct_change(periods=periods,<EOL>fill_method=fill_method,<EOL>limit=limit, freq=freq,<EOL>axis=axis))<EOL><DEDENT>filled = getattr(self, fill_method)(limit=limit)<EOL>filled = filled.drop(self.grouper.names, axis=<NUM_LIT:1>)<EOL>fill_grp = filled.groupby(self.grouper.labels)<EOL>shifted = fill_grp.shift(periods=periods, freq=freq)<EOL>return (filled / shifted) - <NUM_LIT:1><EOL>
Calculate pct_change of each value to previous entry in group.