def apply_raw(self):
try:<EOL><INDENT>result = reduction.reduce(self.values, self.f, axis=self.axis)<EOL><DEDENT>except Exception:<EOL><INDENT>result = np.apply_along_axis(self.f, self.axis, self.values)<EOL><DEDENT>if result.ndim == <NUM_LIT:2>:<EOL><INDENT>return self.obj._constructor(result,<EOL>index=self.index,<EOL>columns=self.columns)<EOL><DEDENT>else:<EOL><INDENT>return self.obj._constructor_sliced(result,<EOL>index=self.agg_axis)<EOL><DEDENT>
apply to the values as a numpy array