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. https://github.com/codebasics/py/blob/master/pandas/20_shift_lag/pandas_shift_lag.ipynb
To download csv and code for all tutorials: go to https://github.com/codebasics/py, click on a green button to clone or download the entire repository and then go to relevant folder to get access to that specific file.
Video Rating: / 5