79095038

Date: 2024-10-16 16:51:15
Score: 1.5
Natty:
Report link

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.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: iinquisitiveTechie