pandas / 0.22.0 / generated / pandas.timedeltaindex.shift.html /

pandas.TimedeltaIndex.shift

TimedeltaIndex.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.22.0/generated/pandas.TimedeltaIndex.shift.html