updating pandas aggregation