#NEWLINE# def attach_dates( self , result ) : #NEWLINE# #INDENT# squeezed = result . squeeze ( ) #NEWLINE# if ( squeezed . ndim < 2 ) : #NEWLINE# #INDENT# return Series ( squeezed , index = self . predict_dates ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return DataFrame ( result , index = self . predict_dates , columns = self . ynames )