#NEWLINE# def getquotes( symbol , start , end ) : #NEWLINE# #INDENT# quotes = fin . quotes_historical_yahoo ( data , start , end ) #NEWLINE# ( dates , open , close , high , low , volume ) = lzip ( * quotes ) #NEWLINE# data = { #NEWLINE# #INDENT# 'open' : open , #NEWLINE# 'close' : close , #NEWLINE# 'high' : high , #NEWLINE# 'low' : low , #NEWLINE# 'volume' : volume , #NEWLINE# #UNINDENT# } #NEWLINE# dates = pa . Index ( [ dt . datetime . fromordinal ( int ( d ) ) for d in dates ] ) #NEWLINE# return pa . DataFrame ( data , index = dates )