def groupData(self, groupAnswer):

        grouped = {}
        answers = {}
        for answer in self.answerList:
            # hold the raw value (filter() will pass the value through castRawAnswer()
            answers[answer["complete_id"]] = answer["value"]
        # Step through each of the responses on the categories question
        for ganswer in groupAnswer:
            gcode = ganswer["complete_id"]
            greply = ganswer["value"]
            # If response to the group question also has a response to the main question
            # Then store the response in value, otherwise return an empty list for this response
            if gcode in answers:
                value = answers[gcode]
                if greply in grouped:
                    grouped[greply].append(value)
                else:
                    grouped[greply] = [value]
            else:
                if greply not in grouped:
                    grouped[greply] = []
        return grouped

    # -------------------------------------------------------------------------
Set register name.
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3AbstractAnalysis.groupData--crossover with--dataset/ETHPy150Open programa-stic/barf-project/barf/barf/analysis/codeanalyzer/codeanalyzer.py/GenericRegister.name