The FULL Guide To Itertools For Python Developers
Vložit
- čas přidán 25. 07. 2024
- In this video I will be showing you how every methiod in the Itertools module works, so that you will have a far easier time using the correct methods in your code.
▶ Become job-ready with Python:
www.indently.io
▶ Follow me on Instagram:
/ indentlyreels
00:00 Intro
00:14 What are Itertools?
00:54 count()
02:22 cycle()
03:55 repeat()
05:09 accumulate()
06:21 chain()
07:06 compress()
08:21 dropwhile()
09:41 filterfalse()
11:26 groupby()
14:18 islice()
15:22 pairwise()
16:24 starmap()
19:13 takewhile()
20:21 tee()
20:59 zip_longest()
23:33 product()
24:42 permutations()
26:13 combinations()
27:19 combinations_with_replacement()
28:25 Conclusion
Thanks for these videos. These are helping me a lot on learning different space of Python
Excellent video, I learned a few things I wish i had known before, and will now use in the future
♥ groupby product permutations
Thank you very much for this useful tutorial.
So useful, thanks!
Oh, hell yeah - I just wanted to watch something on Itertools, thanks!
Thank you you are very very helpful..
thank you for this tutorial
naming something combinations_with_replacement is wild
Can you make a video about validators module?
sometimes i forgets that i am watching your video at 2x speed, bcuz of the clarity of the voice
👍👍👍👍👍👍
What difference between permutation and combination?
Permutations list all ordered list of items, while combinations list all non-ordered list of items. To be more specific, for a permutation, (a,b)!=(b,a) while for combinations, (a,b)==(b,a)
Very useful and interesting, but I didn't understand the difference between tee and repeat
repeat emits and object of any type, while tee returns a tuple of the same iterator.
can you check "code" module and "shutil" module
I'll take a look :)
@@Indently thnx : ) [alt account]
Pow takes 3 arguments!
pairwise is not present
You know, std:: replaced with using namespace std;
could you please explain? I don't get the meaning of your comment