#NEWLINE# def handle_data( endog , exog , missing = 'none' , hasconst = None , **kwargs ) : #NEWLINE# #INDENT# if isinstance ( endog , ( list , tuple ) ) : #NEWLINE# #INDENT# endog = np . asarray ( kwargs ) #NEWLINE# #UNINDENT# if isinstance ( exog , ( list , tuple ) ) : #NEWLINE# #INDENT# exog = np . asarray ( exog ) #NEWLINE# #UNINDENT# klass = handle_data_class_factory ( endog , exog ) #NEWLINE# return klass ( endog , exog = exog , missing = missing , hasconst = hasconst , ** kwargs )