News for hackers. Stuff that matters.
Re:An Introduction to Scientific Python – Pandas by nurettin on Monday July 04, 2016 @03:41AM (#12029342)
Sure if your column data is completely independent and you don't need more than one column at a time in a given algorithm, it is natural to iterate over columns instead of rows. However if you need multiple columns (or data properties) at each iteration, which is more likely the case in my experience, then you end up iterating over the rows.
Re:An Introduction to Scientific Python – Pandas by lottin on Monday July 04, 2016 @06:05AM (#12029758)
That's what Pandas encourages you to do! In my experience iterating is rarely needed at all if you have functions that operate on arrays.