shift()函数 用于对dataframe中的数整体上移或下移, 当为正数时,向下移。 当为负数时,向上移。 缺少的会填充NaN 参考: https://blog.csdn.net/kizgel/article/details/78333833