def wrap_results_for_axis(self):
results = self.results<EOL>result = self.obj._constructor(data=results)<EOL>if not isinstance(results[<NUM_LIT:0>], ABCSeries):<EOL><INDENT>try:<EOL><INDENT>result.index = self.res_columns<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>try:<EOL><INDENT>result.columns = self.res_index<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT>return result<EOL>
return the results for the rows