Write dictionary to CSV #1

Open
opened 2 years ago by f0x1 · 1 comments
f0x1 commented 2 years ago
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/
dark commented 2 years ago

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 Label
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
Loading…
There is no content yet.