python way is to do this:

```
for groupby_index in groupby_idxes:
```
No need of using i and range()