Aggregation with python and pandas