certain rows in df?
Eg. for the first 8 rows, do something. Then repeat for the next 8 rows.
for index, row in df.iterrows(): #looping every 8 rows
#do something
what are you trying to do? and why X rows each time?
don't know if there's a specific pandas method for that, but you could use python built-in itertools https://docs.python.org/3.8/library/itertools.html
Обсуждают сегодня