Aggregates an input series using the given operator. The shape of the aggregation (rolling time window vs.
group by) is selected via the AggregationBuilder union.
The operator needs to be compatible with the input series, producing a numeric output (e.g., count works for
any type of input series whereas SUM only works for numeric series).