parameters: ( self, attribute, func, groupsort='@group desc' )
docstring: Set grouping attribute and function.
docstring_summary: Set grouping attribute and function.
docstring_tokens: Set grouping attribute and function .
function: def SetGroupBy ( self, attribute, func, groupsort='@group desc' ):
  		"""
  		Set grouping attribute and function.
  		"""
  		assert(isinstance(attribute, str))
  		assert(func in [SPH_GROUPBY_DAY, SPH_GROUPBY_WEEK, SPH_GROUPBY_MONTH, SPH_GROUPBY_YEAR, SPH_GROUPBY_ATTR, SPH_GROUPBY_ATTRPAIR] )
  		assert(isinstance(groupsort, str))
  
  		self._groupby = attribute
  		self._groupfunc = func
  		self._groupsort = groupsort
function_tokens: def SetGroupBy ( self , attribute , func , groupsort = '@group desc' ) : assert ( isinstance ( attribute , str ) ) assert ( func in [ SPH_GROUPBY_DAY , SPH_GROUPBY_WEEK , SPH_GROUPBY_MONTH , SPH_GROUPBY_YEAR , SPH_GROUPBY_ATTR , SPH_GROUPBY_ATTRPAIR ] ) assert ( isinstance ( groupsort , str ) ) self . _groupby = attribute self . _groupfunc = func self . _groupsort = groupsort