Python groupby has apparently split our book club over the letter A
Estructuras de datosPythonIt groups consecutive equal keys. Those runs have lengths 2, 1, 1. To collect everything by reader, accumulate by key or sort by reader first. If the original order matters, keep it for your other report. Python's example.