def aggregate(self, func, *columns):
        if not columns:
            columns = ['*']

        self.aggregate_ = {
            'function': func,
            'columns': columns
        }

        previous_columns = self.columns

        results = self.get(*columns)

        self.aggregate_ = None

        self.columns = previous_columns

        if len(results) > 0:
            return dict((k.lower(), v) for k, v in results[0].items())['aggregate']
Get namespaced PRNG stream.
dataset/ETHPy150Open sdispater/orator/orator/query/builder.py/QueryBuilder.aggregate--crossover with--dataset/ETHPy150Open django-ddp/django-ddp/dddp/__init__.py/RandomStreams.__getitem__