Oct-22-2020, 12:19 AM
Since rows corresponds days you can just shift the data frame on 6 positions and compute difference between shifted and original ones:
(df.shift(6).iloc[:, 1] - df.iloc[:,1])[df.index % 6 == 0].dropna()