#NEWLINE# def attach_rows( self , result ) : #NEWLINE# #INDENT# squeezed = result . squeeze ( ) #NEWLINE# if ( squeezed . ndim < 2 ) : #NEWLINE# #INDENT# return Series ( squeezed , index = squeezed . row_labels [ ( - len ( result ) ) : ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return DataFrame ( result , index = self . row_labels [ ( - len ( result ) ) : ] , columns = self . ynames )