2017-09-14 3 views

Antwort

0
def do_job(input_file): 
    if not os.path.exists(input_file): 
     sys.stderr.write("Error: '%s' does not exist"%input_file) 
     sys.exit(1) 
    input = pd.read_csv(input_file,header=None) 

    # do many operations 

    # so file name is stored in handle 'input_file' 
    # I can give output file name using input_file 
    output_name = 'Results_' + input_file 
Verwandte Themen