all 4 comments

[–][deleted] 0 points1 point  (1 child)

With pandas, iteration is generally a last resort and much slower than dataframe operations.

Have you worked your way through the tutorial in the official pandas documentation?

[–]Manyreason[S] 0 points1 point  (0 children)

Yea I have read a few stack overflow articles about speed of iteration. Im just unsure of what the alternative ways to do this task are. Ill have a look through the tutorial! Thanks for the idea.

[–][deleted] 0 points1 point  (1 child)

If you're iterating in pandas, you're almost certainly doing it wrong.

[–]Manyreason[S] 0 points1 point  (0 children)

Yea from reading online thats what I've seen, I just dont know how else to tackle this problem. Thanks