DataFrameGroupBy.shift(periods=1, freq=None, axis=0) [source]
Shift each group by periods observations
| Parameters: |
periods : integer, default 1 number of periods to shift
|
|---|
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.core.groupby.DataFrameGroupBy.shift.html