Sets the grouping information for this tree.
        
        :param      groupBy | [<str> group level, ..] || None
16642
def setGroupBy(self, groupBy):
        
        if groupBy and not type(groupBy) in (list, tuple):
            groupBy = [nativestring(groupBy)]
        elif not groupBy:
            groupBy = None
        
        self._groupBy = groupBy
1165555
def groupBy(self, val):
        

        def by(result, key, value):
            if key not in result:
                result[key] = []
            result[key].append(value)

        res = self._group(self.obj, val, by)

        return self._wrap(res)
937448
def GroupBy(self: dict, f=None):
    
    if f and is_to_destruct(f):
        f = destruct_func(f)
    return _group_by(self.items(), f)
548346
public void setGroups(java.util.Collection<GroupInformation> groups) {
        if (groups == null) {
            this.groups = null;
            return;
        }

        this.groups = new java.util.ArrayList<GroupInformation>(groups);
    }
272908
private function _prepareGroupBy(array $groupByArray)
	{
		if(count($groupByArray) === 1)
		{
			foreach($groupByArray as $orderMode => $column)
			{
				/** @var ColumnInterface $column */
				$this->groupBy = 'GROUP BY ' . $column->getColumnName() . ' ';
				if(is_string($orderMode))
				{
					$this->groupBy .= $orderMode . ' ';
				}
			}
		}
	}
1220865
def full_groupby(iterable, key=None):
    

    return groupby(sorted(iterable, key=key), key=key)
176891
def setGroups(self, *args, **kwargs):
        

        requests = 0
        groups = []
        try:
            for gk in self['groupKeys']:
                try:
                    g = self.mambugroupclass(entid=gk, *args, **kwargs)
                except AttributeError as ae:
                    from .mambugroup import MambuGroup
                    self.mambugroupclass = MambuGroup
                    g = self.mambugroupclass(entid=gk, *args, **kwargs)
                requests += 1
                groups.append(g)
        except KeyError:
            pass

        self['groups'] = groups

        return requests
1335861
public void setGroupId(java.util.Collection<String> groupId) {
        if (groupId == null) {
            this.groupId = null;
            return;
        }

        this.groupId = new com.amazonaws.internal.SdkInternalList<String>(groupId);
    }
340933
public void setGroups(java.util.Collection<GroupType> groups) {
        if (groups == null) {
            this.groups = null;
            return;
        }

        this.groups = new java.util.ArrayList<GroupType>(groups);
    }
1160579
def scale_group(self, group_id, scale_by):
        
        data = {'scaleBy': scale_by}
        response = self._do_request(
            'PUT', '/v2/groups/{group_id}'.format(group_id=group_id), data=json.dumps(data))
        return response.json()
475621
def setGroups(self, *args, **kwargs):
        
        try:
            groups = self.mambugroupsclass(creditOfficerUsername=self['username'], *args, **kwargs)
        except AttributeError as ae:
            from .mambugroup import MambuGroups
            self.mambugroupsclass = MambuGroups
            groups = self.mambugroupsclass(creditOfficerUsername=self['username'], *args, **kwargs)
        self['groups'] = groups

        return 1
1283903
func (s *GetReservationCoverageInput) SetGroupBy(v []*GroupDefinition) *GetReservationCoverageInput {
	s.GroupBy = v
	return s
}
1328886
private void setTag(final int i, final String name, final String value, 
      final boolean groupby) {
    setTagName(i, name);
    setTagValue(i, value);
    isTagGroupby(i, groupby);
  }
119787
def do_group_by(self, element, decl, pseudo):
        """"""
        sort_css = groupby_css = flags = ''
        if ',' in decl.value:
            if decl.value.count(',') == 2:
                sort_css, groupby_css, flags = \
                        map(serialize, split(decl.value, ','))
            else:
                sort_css, groupby_css = map(serialize, split(decl.value, ','))
        else:
            sort_css = serialize(decl.value)
        if groupby_css.strip() == 'nocase':
            flags = groupby_css
            groupby_css = ''
        sort = css_to_func(sort_css, flags,
                           self.css_namespaces, self.state['lang'])
        groupby = css_to_func(groupby_css, flags,
                              self.css_namespaces, self.state['lang'])
        step = self.state[self.state['current_step']]

        target = self.current_target()
        target.sort = sort
        target.lang = self.state['lang']
        target.isgroup = True
        target.groupby = groupby
        #  Find current target, set its sort/grouping as well
        for pos, action in \
                enumerate(reversed(step['actions'])):
            if action[0] == 'target' and \
                    action[1].tree == element.etree_element:
                action[1].sort = sort
                action[1].isgroup = True
                action[1].groupby = groupby
                break
208167
def _get_resampler_for_grouping(self, groupby, **kwargs):
        
        return self._resampler_for_grouping(self, groupby=groupby, **kwargs)
569809
def GroupBy(self: Iterable, f=None):
    
    if f and is_to_destruct(f):
        f = destruct_func(f)
    return _group_by(self, f)
1161536
public void setGroups(java.util.Collection<GroupSummary> groups) {
        if (groups == null) {
            this.groups = null;
            return;
        }

        this.groups = new java.util.ArrayList<GroupSummary>(groups);
    }