Pipe is a Python library that enables you to use pipes in Python. A pipe ( | ) passes the results of one method to another method. Pipe makes my code look cleaner when applying multiple methods to a Python iterable. Since Pipe only provides a few methods, it is also very easy to learn Pipe.

4m read timeFrom kdnuggets.com
Post cover image
Table of contents
MotivationWhat is Pipe?Where — Filter Elements in an IterableSelect — Apply a Function to an IterableUnfold Iterableschain — Chain a Sequence of Iterablestraverse — Recursively Unfold IterablesGroup Elements in a Listdedup — Deduplicate Values Using a KeyConclusion
1 Comment

Sort: