def apply(self, func, **kwargs):
with np.errstate(all='<STR_LIT:ignore>'):<EOL><INDENT>result = func(self.values, **kwargs)<EOL><DEDENT>if not isinstance(result, Block):<EOL><INDENT>result = self.make_block(values=_block_shape(result,<EOL>ndim=self.ndim))<EOL><DEDENT>return result<EOL>
apply the function to my values; return a block if we are not
        one