BUG: Bug in groupby .apply with a non-affecting mutation in the function (GH8467)
Merge pull request #8484 from jreback/groupby_fix

BUG: Bug in groupby .apply with a non-affecting mutation in the function (GH8467)