concept reduce function in category data
appears as: reduce function, The reduce function, A reduce function

This is an excerpt from Manning's book Mastering Large Datasets with Python: Parallelize and Distribute Your Python Code.
The reduce function performs one-to-any transformations and is a great way to assemble data into a final result.
Listing 5.1 provides an example of how summation with reduce may look. Two things are worth noting about this short bit of code. First, we need to import reduce from the functools library. The reduce function is not a default import like map, though it is available with any distribution of Python. In deprecated versions of Python (2.7 and below), reduce was available by default.