BUG: regression when applying groupby aggregation on categorical colu…
Backport of https://github.com/pandas-dev/pandas/pull/31359
@simonjayhawkins btw, I don't think you need to do any effort in labeling backports, it's the original PR that is relevant 
(it rather adds noise to the label I would say)