-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Documentation on Performance considerations #16310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Working on it at pycon2017 :) |
There was also a presentation on PyCon about optimizing pandas: https://github.com/sversh/pycon2017-optimizing-pandas, which can probably be used as well for some inspiration |
Looks like we have https://pandas.pydata.org/pandas-docs/stable/user_guide/enhancingperf.html so closing for now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description
We could use a section in the docs about performance considerations. @TomAugspurger has a nice notebook with suggestions here: http://nbviewer.jupyter.org/github/TomAugspurger/pandas-head-to-tail/blob/master/06-Performance.ipynb
An item to add relates to using
.assign()
, where, if you have a big DataFrame, it is more inefficient in time and memory to use.assign()
as opposed to just creating each new column without the use of method chaining via the paradigm ofThe text was updated successfully, but these errors were encountered: