 the specifications, setup the internal grouper
        for this particular specification

        Parameters
        ----------
        obj : the subject object
        sort : bool, default False
            whether the resulting grouper should be sorted
        Nz2The Grouper cannot specify both a key and a level!z!The grouper name {0} is not found)