PyDocs

Nav

File Formats

DictWriter.writeheader

csv

method of DictWriter · Added in 3.2 (source)
  • DictWriter.writeheader()
Write a row with the field names (as specified in the constructor) to the writer’s file object, formatted according to the current dialect. Return the return value of the csvwriter.writerow() call used internally.
Changed in 3.8
  • 3.8: writeheader() now also returns the value returned by the csvwriter.writerow() method it uses internally.
0 Examples
No examples for csv/DictWriter.writeheader.
See Also
No see-alsos for csv/DictWriter.writeheader
0 Notes
No notes for DictWriter.writeheader