Answers for "python script to do operations on csv files and put it together into another csv file"

0

csv manipulation python

import csv, sys
filename = 'some.csv'
with open(filename, 'rb') as f:
    reader = csv.reader(f)
    try:
        for row in reader:
            print row
    except csv.Error as e:
        sys.exit('file %s, line %d: %s' % (filename, reader.line_num, e))
Posted by: Guest on April-20-2020

Code answers related to "python script to do operations on csv files and put it together into another csv file"

Python Answers by Framework

Browse Popular Code Answers by Language