Finding the best syntax for Aggregation in Python

By