<s> """<STR_LIT>""" <EOL> __docformat__ = '<STR_LIT>' <EOL> COPYRIGHT = """<STR_LIT>""" <EOL> TITLE = __doc__ <EOL> SOURCE = """<STR_LIT>""" <EOL> DESCRSHORT = """<STR_LIT>""" <EOL> DESCRLONG = """<STR_LIT>""" <EOL> NOTE = """<STR_LIT>""" <EOL> import numpy as np <EOL> from statsmodels . datasets import utils as du <EOL> from os . path import dirname , abspath <EOL> def load ( ) : <EOL> """<STR_LIT>""" <EOL> data = _get_data ( ) <EOL> return du . process_recarray ( data , endog_idx = <NUM_LIT:2> , exog_idx = [ <NUM_LIT:3> , <NUM_LIT:4> , <NUM_LIT:5> , <NUM_LIT:6> , <NUM_LIT:7> , <NUM_LIT:8> ] , <EOL> dtype = float ) <EOL> def load_pandas ( ) : <EOL> """<STR_LIT>""" <EOL> data = _get_data ( ) <EOL> return du . process_recarray_pandas ( data , endog_idx = <NUM_LIT:2> , exog_idx = [ <NUM_LIT:3> , <NUM_LIT:4> , <NUM_LIT:5> , <NUM_LIT:6> , <NUM_LIT:7> , <NUM_LIT:8> ] , <EOL> dtype = float ) <EOL> def _get_data ( ) : <EOL> filepath = dirname ( abspath ( __file__ ) ) <EOL> with open ( filepath + '<STR_LIT>' , '<STR_LIT:rb>' ) as f : <EOL> data = np . recfromtxt ( f , delimiter = "<STR_LIT:;>" , names = True , dtype = float ) <EOL> return data </s>
