def _transform_fast(self, func, func_nm):
if isinstance(func, str):<EOL><INDENT>func = getattr(self, func)<EOL><DEDENT>ids, _, ngroup = self.grouper.group_info<EOL>cast = self._transform_should_cast(func_nm)<EOL>out = algorithms.take_1d(func()._values, ids)<EOL>if cast:<EOL><INDENT>out = self._try_cast(out, self.obj)<EOL><DEDENT>return Series(out, index=self.obj.index, name=self.obj.name)<EOL>
fast version of transform, only applicable to
builtin/cythonizable functions