3 ways to speed up your Python/pandas code by up to 10x that I learned from a recent @kaggle notebook:
Avoid `apply` like fire.
It might seem `apply` is the only way, but often you will be mistaken.
Check the docs for a long list of vectorized groupby operations: #groupby" target="_blank" rel="noopener" onclick="event.stopPropagation()">pandas.pydata.org
It might seem `apply` is the only way, but often you will be mistaken.
Check the docs for a long list of vectorized groupby operations: #groupby" target="_blank" rel="noopener" onclick="event.stopPropagation()">pandas.pydata.org
Why is @kaggle so cool?
A person on the Internet refactored my notebook and that is how I learned (or to be honest, got reminded) of the three techniques above! 🔥
What a great environment to learn!
You can find the refactored notebook here: kaggle.com
A person on the Internet refactored my notebook and that is how I learned (or to be honest, got reminded) of the three techniques above! 🔥
What a great environment to learn!
You can find the refactored notebook here: kaggle.com
Loading suggestions...