If it\'s single row, I can get the iterator as following
import pandas as pd import numpy as np a = np.zeros((100,40)) X = pd.DataFrame(a) for index, row i
That's not how rolling works. It "provides rolling transformations" (from the docs).
You can loop and use pandas indexing?
for i in range((X.shape[0] + 9) // 10): X_subset = X.iloc[i * 10: (i + 1) * 10])