#NEWLINE# def _get_data( ) : #NEWLINE# #INDENT# filepath = dirname ( abspath ( __file__ ) ) #NEWLINE# with open ( ( filepath + '/anes96.csv' ) , 'rb' ) as f : #NEWLINE# #INDENT# data = recfromtxt ( f , delimiter = '\t' , names = True , dtype = float ) #NEWLINE# logpopul = log ( ( data [ 'popul' ] + 0.1 ) ) #NEWLINE# data = nprf . append_fields ( data , 'logpopul' , logpopul , usemask = False , asrecarray = True ) #NEWLINE# return data