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