Examples
import numpy as np
import pandas as pd
df = pd.DataFrame({'C1': [20, 30, 25, 40, 55],
'C2': [23, 33, 28, 43, 58],
'C3': [27, 37, 32, 47, 62]})
df.shift(periods=3)
df.shift(periods=1, axis='columns')
df.shift(periods=3, fill_value=0)