concept reduce pattern in category data

appears as: reduce pattern
Mastering Large Datasets with Python: Parallelize and Distribute Your Python Code

This is an excerpt from Manning's book Mastering Large Datasets with Python: Parallelize and Distribute Your Python Code.

Figure 5.1. The sum function is a common example of the reduce pattern that most people already know.

For example, if we had a sequence with the numbers 10, 5, 1, 19, 11, and 203, we could sum them up and get a single number back. This would take us from our six original numbers down to only one resulting number. We would have transformed our data from size N (6) down to X (1). This is the essence of the reduce pattern: taking a sequence and transforming it into something else.

Figure 5.1. The sum function is a common example of the reduce pattern that most people already know.