def tocsv(table, source=None, encoding=None, errors='strict', write_header=True,
          **csvargs):

    source = write_source_from_arg(source)
    csvargs.setdefault('dialect', 'excel')
    tocsv_impl(table, source=source, encoding=encoding, errors=errors,
               write_header=write_header, **csvargs)
Write the table to a CSV file. E.g.::
dataset/ETHPy150Open alimanfoo/petl/petl/io/csv.py/tocsv