An open API service indexing awesome lists of open source software.

https://github.com/hsm207/pandas_row_iteration

Why itertuples() is faster than iterrows()
https://github.com/hsm207/pandas_row_iteration

blog blogging datascience pandas profiling

Last synced: 7 months ago
JSON representation

Why itertuples() is faster than iterrows()

Awesome Lists containing this project

README

          

# Introduction

This repo contains code to accompany my blog post titled [Why Pandas itertuples() Is Faster Than iterrows() and How To Make It Even Faster](https://medium.com/@_init_/why-pandas-itertuples-is-faster-than-iterrows-and-how-to-make-it-even-faster-bc50c0edd30d)

# Usage

There are only two notebooks, namely:
* [pandas_row_iteration_analysis](./pandas_row_iteration_analysis.ipynb): This contains all the timings and profiles for the various methods described in the blog post.
* [itertuple_stats](itertuple_stats.ipynb): This contains a more detailed analysis of the profile for the `itertuples()` solution.