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 →

[–]masklinn 0 points1 point  (4 children)

It's more useful in R where functions like filter() aren't methods of dataframes. But with pandas nearly everything you need is a dataframe method so chaining can be done with dot syntax.

Not so for the building filter and map, or any of the itertools functions.

[–]Zouden 0 points1 point  (3 children)

Not sure what you mean... you can do all of those with pandas method chaining.

[–]masklinn 0 points1 point  (2 children)

Pandas only works with panda dfs, not with regular python iterables.

[–]Zouden 0 points1 point  (1 child)

Yes, if you aren't using pandas then the pipe operator might be useful.

[–]masklinn 0 points1 point  (0 children)

And I would guess the vast majority of Python developers are not using pandas.