#NEWLINE# def _get_yarr( self , endog ) : #NEWLINE# #INDENT# if data_util . _is_structured_ndarray ( endog ) : #NEWLINE# #INDENT# endog = data_util . struct_to_ndarray ( endog ) #NEWLINE# #UNINDENT# endog = np . asarray ( endog ) #NEWLINE# if ( len ( endog ) == 1 ) : #NEWLINE# #INDENT# if ( endog . ndim == 1 ) : #NEWLINE# #INDENT# return endog #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . ndim > 1 ) : #NEWLINE# #INDENT# return np . asarray ( [ endog . squeeze ( ) ] ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return endog . squeeze ( )