I have a dataset from which i need to take the index 0 and 1 then process the output then take the index value 2 and 3 then process the output and so on.

The code which i have tried takes the value of index 0 and 1 then 1 and 2 then 2 and 3 and so on.

```
for i,r in tqdm(gf.iterrows()):
lp = 0
for v in range(0, 10 + 1):
    lp += r.length_10
    ix.append(i)
    basket.append(r.line.interpolate(lp))

```

The code must take the index value of o and 1 then 2 and 3 then 4 and 5 and so on....0