- Iterate and save into variables
- Using apply
- Using map
- Parallel processing
- Itertuples VS iterrows
All tests done under pandas v1.3.x, under Python 3.8
WIP Alert This is a work in progress. Current information is correct but more content may be added in the future.
HEADS-UP: Prefer vectorization over iteration if you can
Iterate and save into variables
TODO save into variables with the same name as the columns.
Itertuples VS iterrows
itertuples is much faster than
itertuplesis MUCH faster than
In this example, processing a dataframe with 100,000 rows was 20 times faster with