Skip to content

Instantly share code, notes, and snippets.

@lockefox
Last active August 22, 2017 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lockefox/0279da3a336df05360b73384e67ae576 to your computer and use it in GitHub Desktop.
Save lockefox/0279da3a336df05360b73384e67ae576 to your computer and use it in GitHub Desktop.
Data Scenario 200 records 2000 records 50000 records
Pivot Dicts - Pandas 0.015s 0.041s 0.804s
Pivot Dicts - Raw Python 0.028s 0.217s 5.781s
Pivot Lists - Pandas (concat) 0.834s 9.672 2069.694s
Pivot Lists - Pandas (melt) 0.029s 0.190s 17.454s
Pivot Lists - Raw Python 0.043s 0.213s 5.502s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment