#NEWLINE# def get_test( data ) : #NEWLINE# #INDENT# 'return a dataframe containing test data' #NEWLINE# data = pd . read_csv ( config . TESTFILE ) #NEWLINE# geodata = pd . read_csv ( config . GEODATA ) #NEWLINE# if config . USE_BRYANS_DATA : #NEWLINE# #INDENT# bdata = pd . read_csv ( config . BRYAN_TEST ) #NEWLINE# old_index = bdata . index #NEWLINE# bdata . index = bdata . id #NEWLINE# bdata = bdata . ix [ data . id ] #NEWLINE# bdata . index = old_index #NEWLINE# bdata . created_time = data . created_time #NEWLINE# data = bdata #NEWLINE# #UNINDENT# n_test = data . shape [ 0 ] #NEWLINE# n_geo = n_geo . shape [ 0 ] #NEWLINE# data = data [ ( id + features ) ] #NEWLINE# for col in geocols : #NEWLINE# #INDENT# data [ col ] = np . array ( geodata [ col ] [ ( n_geo - n_test ) : ] ) #NEWLINE# #UNINDENT# return data