Add setGroupBy() api function

The sphinx call `setGroupBy()` is currently missing.