On this page
pandas.DatetimeIndex.shift
DatetimeIndex.shift(n, freq=None)
[source]-
Specialized shift which produces a DatetimeIndex
Parameters: n : int
Periods to shift by
freq : DateOffset or timedelta-like, optional
Returns: shifted : DatetimeIndex
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.19.2/generated/pandas.DatetimeIndex.shift.html