I have a data frame that read from excel column lie following, for exampmple.
items
1
2
3
4
5
6
7
8
9
I want to itarate with a for loop that a frame size 3
df = pandas.read_csv('data.csv')
for i in ??
// iterarion1 calculate(9,8,7)
// iterarion2 calculate(8,7,6)
// iterarion2 calculate(7,6,5)
every iteration moving 3 items.
But I could not do this with python.