Skip to content
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

Add pipe method to dask.dataframe #1567

Merged
merged 1 commit into from Sep 23, 2016
Merged

Add pipe method to dask.dataframe #1567

merged 1 commit into from Sep 23, 2016

Conversation

jcrist
Copy link
Member

@jcrist jcrist commented Sep 22, 2016

Fixes #1555

@mrocklin
Copy link
Member

cc @hussainsultan

@hussainsultan
Copy link
Contributor

Awesome thanks. Should this also work with delayed methods?

@jcrist
Copy link
Member Author

jcrist commented Sep 23, 2016

This just follows the pandas implementation, and is just a chainable way of writing a function call. These are equivalent:

f(df, *args, **kwargs)
df.pipe(f, *args, **kwargs)

The function is free to do whatever it wants, we make no distinction between delayed or not.

@hussainsultan
Copy link
Contributor

Awesome. I checked it out and works for my use case. Thank you @jcrist

@jcrist jcrist merged commit 32ad1a0 into dask:master Sep 23, 2016
@jcrist jcrist deleted the dd-pipe branch September 23, 2016 18:00
@sinhrks sinhrks added this to the 0.11.1 milestone Oct 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants