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
On this page of the site you can watch the video online Itertools Python Programming Tutorial | Advanced Python with a duration of hours minute second in good quality, which was uploaded by the user Haseeb Kamal 01 July 2023, share the link with friends and acquaintances, this video has already been watched 213 times on youtube and it was liked by 6 viewers. Enjoy your viewing!