I am new to pandas and I found this weird problem I could not get my head around (hate pandas). I have a dataframe df
with shape: (1033, 5)
. So, my understanding is that there are 1033 rows and 5 columns.
Now I iterate through this using:
for idx, row in df.iterrows():
print(idx)
In this loop I see numbers greater than 1033 such as 1722.. WTF is going on? Any pointers would be great.