Write dictionary to CSV #1

Open
opened 2022-01-16 13:25:58 +00:00 by f0x1 · 1 comment
Owner

columns are full with only keys of dictionary

there is a csv.DictWriter to actually write the keys to the file, see: https://www.delftstack.com/de/howto/python/python-dictionary-to-csv/

columns are full with only keys of dictionary there is a `csv.DictWriter` to actually write the keys to the file, see: https://www.delftstack.com/de/howto/python/python-dictionary-to-csv/
Collaborator

There is another fluke here, missing with-clause while having a file handle left open:
https://docs.python.org/3/reference/compound_stmts.html#the-with-statement

There is another fluke here, missing `with`-clause while having a file handle left open: https://docs.python.org/3/reference/compound_stmts.html#the-with-statement
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: f0x1/Kaenguru_requests#1
No description provided.