'@todo: docstring'

def filter(self, filterType, groupedData):

    filteredData = {}
    if (filterType == 'Sum'):
        for (key, valueList) in groupedData.items():
            total = 0
            for value in valueList:
                try:
                    total += self.castRawAnswer(None, value)
                except:
                    pass
            filteredData[key] = total
        return filteredData
    return groupedData
