70 ms·
The title is a bit clickbaity, so here’s a TL;DR: Try to use the built-in vectorized Pandas functions instead of writing explicit loops.
by applecrazy 7y ago
The title is a bit clickbaity, so here’s a TL;DR:
Try to use the built-in vectorized Pandas functions instead of writing explicit loops.
- Icathian 7y agoIt's wild how much faster iterrows and itertuples are. I wish I'd known a year ago. This is one of those cases that really isn't just pedantic, "pythonic", nagging. It matters.