Grouping and Aggregating in pandas: groupby as the PivotTable Replacement | Wicked Smart Data