In this video I will cover the Itertools module from the Python standard library. Itertools is a collection of functions that can be used on iterables which are data structures that can be looped over.
The module is especially useful for big data tasks and for cases where there is a stream of data that needs to be handled. This is because itertools feature lazy evaluation which means elements are evaluated on the fly and means we don't need to store entire data structures in memory in order to do operations on them. All in all this also helps keep memory footprint small.
I cover a handful of methods with examples. Although it is termed Advanced, you can still follow along if you have basic Python skills.
00:00 Intro
00:57 Cartesian Product
01:40 Permutations
02:44 Combinations
03:15 Groupby - default key
04:21 Groupby - custom key
06:52 Count
07:29 Cycle
08:15 Repeat
08:33 Dropwhile
09:21 Takewhile
09:48 End
Please consider liking if you found the video useful and subscribe for more!
Subscribe here: / @haseebkamal
Auf dieser Seite können Sie das Online-Video Itertools Python Programming Tutorial | Advanced Python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Haseeb Kamal 01 Juli 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 213 Mal angesehen und es wurde von 6 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!