If you want to iterate over rows of a pandas DataFrame, use df.iterrows(). Find an example of this method above.
df.iterrows()
Link to the source code.