April 2016
Intermediate to advanced
486 pages
9h 21m
English
The itertools library contains iterable functions inspired by those available in functional languages. All of these are iterable and have been constructed in such a way that only a minimal amount of memory is required to process even the largest of datasets. While you can easily write most of these functions yourself using a simple function, I would still recommend using the ones available in the itertools library. These are all fast, memory efficient, and—perhaps more importantly—tested.
Even though the titles of the paragraphs are capitalized, the functions themselves are not. Be careful not to accidently type Accumulate instead of accumulate.
The accumulate function is very similar to ...
Read now
Unlock full access