csv.DictWriter

class csv.DictWriter(f, fieldnames, restval='', extrasaction='raise', dialect='excel', *args, **kwds)
__init__(f, fieldnames, restval='', extrasaction='raise', dialect='excel', *args, **kwds)

Methods

__init__(f, fieldnames[, restval, ...])
writeheader()
writerow(rowdict)
writerows(rowdicts)

Navigation