DOC add groupby head and tail to docs