Skip to content

Parallel processing in groupby operations #20817

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

Closed
mhooreman opened this issue Apr 25, 2018 · 1 comment
Closed

Parallel processing in groupby operations #20817

mhooreman opened this issue Apr 25, 2018 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request Performance Memory or execution speed performance

Comments

@mhooreman
Copy link

mhooreman commented Apr 25, 2018

Hello,

It would be nice to have the possibility to do parallel processing using joblib when applying something to a groupby. I'm dreaming about a parallel optional argument which defaults to False.

I think it's best to have that parallel argument while grouping

The only option I have now is to make list on the groupby results, apply a function on that list using joblib, and concatenate the results. It leads to unefficient and difficult to read code.

############
# Examples #
############
data.groupby(...).fillna(..., parallel=True)
data.groupby(...).apply(..., parallel=True)
data.groupby(...).whatever(..., parallel=True)
data.groupby(...).whatever(...) # not parallel
@jreback
Copy link
Contributor

jreback commented Apr 25, 2018

duplicate of #13111 this is non-trivial and should only have an api in pandas not an actual implementation, this is currently possible via dask (though not directly thru a pandas api).

Certainly would take a PR, but this is a fairly large effort / surface area.

@jreback jreback closed this as completed Apr 25, 2018
@jreback jreback added Performance Memory or execution speed performance Duplicate Report Duplicate issue or pull request labels Apr 25, 2018
@jreback jreback added this to the No action milestone Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request Performance Memory or execution speed performance
Projects
None yet
Development

No branches or pull requests

2 participants