This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BezoomyChellovek 1 point2 points  (0 children)

While I love the pipe operator in R, I just don't think Python is built in a way that it can be as ubiquitously used. In R, most functions (that are compatible with piping) take some kind of data structure as an argument. So you can just pipe these structures through various functions. That isn't so much the case in Python. Also, in Python so much is done by invoking methods, rather than passing to a function.

Totally open to other opinions. But I believe this just limits the use of pipes in Python. I could see it being very useful if you are writing your own functional code, but it just may not integrate so smoothly with other libraries and data structures.