Overview
Syllabus
Introduction
Chapter 1: Fetching data
urllib
TypedDict
Batching
islice
batched
DictWriter
Chapter 2: Cleaning data
pairwise
chain
ChainMap¹
Multiple Context Managers
Doctest
yield from
misusing return value in generators
NamedTuple²
Chapter 3: Processing data
defaultdict
Counter
groupby
reduce / tee
¹itertools.ChainMap is wrong: collections.ChainMap is right
²We also need to yield one more time at the end for the case, where the last books are lost books. Maybe even yield namedtuplebook: Book, lost: bool
Taught by
EuroPython Conference