Update groupby.rst

Edit following this remark <https://github.com/pydata/pandas/pull/6304/files#r9564092>