📅  最后修改于: 2022-03-11 14:45:24.410000             🧑  作者: Mango
代码示例1
df.shift(2, axis = 0)
df.shift(-2, axis = 0)
df['c1'] = df['c2'].shift(2, axis = 0)
df['c1'] = df['c2'].shift(-2, axis = 0)