Table Of Contents

Search

Enter search terms or a module, class or function name.

pandas.core.groupby.DataFrameGroupBy.shift

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

freq : frequency string
axis : axis to shift, default 0
Scroll To Top