I am trying to find a way that gets the row of a dataframe using index that has the same result as using data_file.iterrows(). I tried the following code, but they are not indentical. Is there any way to do this? Thanks!
for row in data_file.iterrows():
print(row == data_file.iloc[0])
print(row)
print(data_file.iloc[0])
break
for ind, row in data_file.iterrows():The iterator gives you a tuple of index, row