def _wrap_result(self, result, block=None, obj=None):
if obj is None:<EOL><INDENT>obj = self._selected_obj<EOL><DEDENT>index = obj.index<EOL>if isinstance(result, np.ndarray):<EOL><INDENT>if block is not None:<EOL><INDENT>if is_timedelta64_dtype(block.values.dtype):<EOL><INDENT>from pandas import to_timedelta<EOL>result = to_timedelta(<EOL>result.ravel(), unit='<STR_LIT>').values.reshape(result.shape)<EOL><DEDENT><DEDENT>if result.ndim == <NUM_LIT:1>:<EOL><INDENT>from pandas import Series<EOL>return Series(result, index, name=obj.name)<EOL><DEDENT>return type(obj)(result, index=index, columns=block.columns)<EOL><DEDENT>return result<EOL>
Wrap a single result.