ID EN
CSV

writeheader

Python 3.11

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.

Syntax

PYTHON
DictWriter.writeheader()

See Also

csvwriter.writerow() writeheader() csvwriter.writerow()