def transform(self, transform, desc=None):
        if desc is None:
            desc = u'transform({})'.format(getattr(transform, '__name__', ''))

        return self.replace(
            transforms=self.transforms + [transform],
            desc_stack=self.desc_stack + [desc]
        )
Create a copy of this query, transformed by `transform`.
dataset/ETHPy150Open edx/bok-choy/bok_choy/query.py/Query.transform