Re:The unreasonable effectiveness of the Julia programming l...
by mint2 on Saturday October 10, 2020 @02:24AM
(#24737029)
How much of a speed difference is there for iterating over the rows of a data frame in Julia vs pandas itertuples with index false and name none? Any ballpark figure will do, I’m curious.
[ Parent
| on HN ]
Re:The unreasonable effectiveness of the Julia programming l...
by Tarrosion on Saturday October 10, 2020 @08:58PM
(#24743069)
For a DataFrame with 1 column containing integers 0 to 99,999, in Python I'm seeing ~16ms to add up the column by iterating with itertuples (index false, name none - which I didn't know helped performance, so thanks!). Julia it's 8ms to add up when iterating with eachrow and accessing the column by name.
So ~2x faster in Julia? Though it's a sort of awkward comparison, since this type of iteration seems a little anti-idiomatic in Python/pandas and doesn't fully leverage type information in Julia.