Group the index labels by a given array of values.
Values used to determine the groups.
{group name -> group labels}