#NEWLINE# @ lru_cache ( ) #NEWLINE# def get_data( t1 , t2 ) : #NEWLINE# #INDENT# df1 = load_ticker ( t1 ) #NEWLINE# df2 = load_ticker ( t2 ) #NEWLINE# data = pd . concat ( [ df1 , df2 ] , axis = 1 ) #NEWLINE# data = data . dropna ( ) #NEWLINE# data [ 't1' ] = data [ t1 ] #NEWLINE# data [ 't2' ] = df2 [ t2 ] #NEWLINE# data [ 't1_returns' ] = data [ ( t1 + '_returns' ) ] #NEWLINE# data [ 't2_returns' ] = data [ ( t2 + '_returns' ) ] #NEWLINE# return data