test groupby on subdataframe

A project of mine relies on this working. I saw a TODO in subdataframe code mentioning that `nrow` would be removed, which may have knock-on effect on `groupby`. This makes sure we navigate this properly.