pandas.Index.shift

Index.shift(periods=1, freq=None)[source]

Shift Index containing datetime objects by input number of periods and DateOffset

Returns:shifted : Index