pandas 数据实现行间计算的方法 如下所示:###方法1:用shift函数,不用通过循环importpandasaspdimportnumpyasnpimportmatplotlibaspltdf=pd 行间计算