def argmax(self, values):
    'return the index into values corresponding to the maximum value of the group\n\n        Parameters\n        ----------\n        values : array_like, [keys]\n            values to pick the argmax of per group\n\n        Returns\n        -------\n        unique: ndarray, [groups]\n            unique keys\n        argmax : ndarray, [groups]\n            index into value array, representing the argmax per group\n        '
    (keys, maxima) = self.max(values)
    maxima = maxima[self.inverse]
    index = as_index((self.inverse, (values == maxima)))
    return (keys, index.sorter[index.start[(- self.groups):]])
return the index into values corresponding to the maximum value of the group

Parameters
----------
values : array_like, [keys]
    values to pick the argmax of per group

Returns
-------
unique: ndarray, [groups]
    unique keys
argmax : ndarray, [groups]
    index into value array, representing the argmax per group
def argmax(self, values):
    'return the index into values corresponding to the maximum value of the group\n\n        Parameters\n        ----------\n        values : array_like, [keys]\n            values to pick the argmax of per group\n\n        Returns\n        -------\n        unique: ndarray, [groups]\n            unique keys\n        argmax : ndarray, [groups]\n            index into value array, representing the argmax per group\n        '
    (keys, maxima) = self.max(values)
    maxima = maxima[self.inverse]
    index = as_index((self.inverse, (values == maxima)))
    return (keys, index.sorter[index.start[(- self.groups):]])