iterrows() is not an efficient way to iterate through the rows in a pandas dataFrame especially when dealing with large data. If possible, you should try to use vectorized operations or apply functions instead.
You can read the documentation here. https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.apply.html
This might help others to code in a more pythonic way.