#NEWLINE# def _make_exog_names( exog ) : #NEWLINE# #INDENT# exog_var = exog . var ( 0 ) #NEWLINE# if ( exog_var == 0 ) . any ( ) : #NEWLINE# #INDENT# const_idx = exog_var . argmin ( ) #NEWLINE# exog_names = [ ( 'x%d' % i ) for i in range ( 1 , exog_names . shape [ 1 ] ) ] #NEWLINE# exog_names . insert ( const_idx , 'const' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# exog_names = [ ( 'x%d' % i ) for i in range ( 1 , ( exog . shape [ 1 ] + 1 ) ) ] #NEWLINE# #UNINDENT# return exog_names