<s> """<STR_LIT>""" <EOL> from __future__ import print_function <EOL> from os . path import ( <EOL> dirname , <EOL> join , <EOL> ) <EOL> from pandas . io . data import get_data_yahoo <EOL> here = join ( dirname ( __file__ ) ) <EOL> def main ( ) : <EOL> symbols = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> for symbol in symbols : <EOL> data = get_data_yahoo ( symbol , start = '<STR_LIT>' , end = '<STR_LIT>' ) <EOL> data . rename ( <EOL> columns = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } , <EOL> inplace = True , <EOL> ) <EOL> del data [ '<STR_LIT>' ] <EOL> dest = join ( here , symbol + '<STR_LIT>' ) <EOL> print ( "<STR_LIT>" % ( symbol , dest ) ) <EOL> data . to_csv ( dest , index_label = '<STR_LIT>' ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
