Fast iteration over rows of a DataFrame

Actually the recommended way after DataFrames 0.21 will be released (or on current #master) is:

for row in Tables.namedtupleiterator(df)

if you need performance but you are willing to pay the cost of compilation.

If your computation is small and you want to avoid compilation cost (which for very wide tables can be significant) use what you have indicated above:

for row in eachrow(df)
11 Likes