how to iterate through each row of a dataframe