related to #6288

Comment From: benedicteslee

adding examples to the doc string

Comment From: mroeschke

https://pandas.pydata.org/pandas-docs/version/0.20/groupby.html should be sufficient. Closing