如下所示: ###方法1:用shift函數,不用通過循環 import pandas as pd import numpy as np import matplotlib as plt df =
{ &