10 Minutes to pandas #Stats # shift 这玩意儿有啥用??? s = pd.Series([1,5,np.nan], index=dates).shift(0) # s1 = pd.Series([1,5,np.nan], index=dates).shift(1) # s2 = pd.Series([1,5,np.nan], index=dates).shift(2) # print(s) # print(s1) # print(s2) # 2018-01-16…