CSV Files
csv.reader(csvfile, dialect=’excel’, *\fmtparams*)If csvfile is a file object, it should be opened with newline=''.
A short usage example:
12345import csvwith open('eggs.csv', newline='') as csvfile: spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|') for row in spamreade...