def group_field(self):
        """The group field of the view, or None if the view is not grouped."""
        if not self._has_slices:
            return None

        return self._dataset.group_field
The group field of the view, or None if the view is not grouped.
fiftyone/core/view.py