Pandas Time Series Analysis 6: Shifting and Lagging

Shifting and lagging is used to shift or lag the values in a time series back and forward in time. shift and tshift methods can be called on datadframe and timeseries both to either shift values or datetimes.
Back to Top