def writeCSV(self, outfile):
    '\n        writes data in tableData object to outfile in csv format\n        \n        Values with commas are quoted. \n        '
    import csv
    self._outTest(outfile)
    with open(outfile, mode='w', newline='', encoding='utf-8') as csvfile:
        out = csv.writer(csvfile, dialect='excel')
        for r in range(0, self.nrows()):
            row = self.table[r]
            out.writerow(row)
    self.verbose(('csv written to %s' % outfile))
writes data in tableData object to outfile in csv format

Values with commas are quoted.
def writeCSV(self, outfile):
    '\n        writes data in tableData object to outfile in csv format\n        \n        Values with commas are quoted. \n        '
    import csv
    self._outTest(outfile)
    with open(outfile, mode='w', newline=, encoding='utf-8') as csvfile:
        out = csv.writer(csvfile, dialect='excel')
        for r in range(0, self.nrows()):
            row = self.table[r]
            out.writerow(row)
    self.verbose(('csv written to %s' % outfile))