Grouping Data With itertools.groupby()
Now that you know how to use the
reduce() function and Python’s
defaultdict class, which is defined in the
collections module, it’s time to look at some useful helpers in the
itertools module, such as
In the next section of this course, you’ll learn how to do parallel programming in Python using functional programming principles and the
multiprocessing module. You’ll start by taking the example data set based on an immutable data structure that you previously transformed using the built-in
map() function. But this time, you’ll process the data in parallel, across multiple CPU cores using the Python
multiprocessing module available in the standard library.
Comments & Discussion
Become a Member to join the conversation.