Without parallelization | |
---|---|
With parallelization |
Pandaral.lel provides a simple way to parallelize your pandas operations on all your CPUs by changing only one line of code. It also displays progress bars.
If you are interested, please contact me or open a GitHub issue.
pip install pandarallel [--upgrade] [--user]
from pandarallel import pandarallel
pandarallel.initialize(progress_bar=True)
# df.apply(func)
df.parallel_apply(func)
Be sure to check out the documentation.
An example of each available pandas
API is available:
- For Mac & Linux
- For Windows