question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does ddf.pipe() make sense?

See original GitHub issue

Often times, i end up writing a function that takes in a dask.dataframe. pandas implements pd.pipe(func) that i find pretty convenient.

This is a pretty easy to implement but i think pipe may be pretty confusing in dask.dataframe world especially if someone tries to do columnar reductions. Thoughts on if it makes sense to implement?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mrocklincommented, Sep 19, 2016

I think that dask.dataframe should almost always follow pandas semantics

0reactions
shoyercommented, Sep 19, 2016

I would literally copy the implementation of pipe from pandas, e.g.,

    def pipe(self, func, *args, **kwargs):
        if isinstance(func, tuple):
            func, target = func
            if target in kwargs:
                raise ValueError('%s is both the pipe target and a keyword '
                                 'argument' % target)
            kwargs[target] = self
            return func(*args, **kwargs)
        else:
            return func(self, *args, **kwargs)

df.pipe(func) should not separately map func over partitions no more than calling a func(df) does.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Does 'DDF' Mean? | Acronyms by Dictionary.com
DDF is an acronym, used on dating websites or personal ads, that stands for drug disease free or drug and disease free.
Read more >
Splitting Large CSV files with Python - MungingData
Compressing the data. The main objective when splitting a large CSV file is usually to make downstream analyses run faster and more reliably....
Read more >
lme4: Linear Mixed-Effects Models using 'Eigen' and S4
(For GLMMs, the resulting sample will no longer have the same properties as the original sample, and the method may not make sense;...
Read more >
PySpark of Warcraft
Do basic economic laws make sense? • Is there such a thing as an equilibrium price? • Is there a relationship between production...
Read more >
The Zimbabwe Bush Pump: Mechanics of a Fluid Technology ...
although 40 mm pipe is becoming more common. Most rods are made of. 16 mm mild steel although 12 mm is also used....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found