Этот код работал
from itertools import tee
from itertools import zip_longest as izip
def pairwise(iterable):
"s -> (s0,s1), (s1,s2), (s2, s3), ..."
a, b, c = tee(iterable,3)
next(b);next(c);next(c)
return izip(a, b, c)
for (idx1, row1), (idx2, row2), (idx3, row3) in pairwise(stock_fut.iterrows()):
print(idx1,row1,"\n\n",idx2,row2,"\n\n",idx3, row3,"\n\n")