shift right in python code example
Example: shift in python
shift() is a pandas.DataFrame method that allows you to shift
a line of value by a given number called period.
You can shift along rows, setting axis = 0, or along columns
setting axis = 1. For its complete usage, check the source link.