Write dictionary to CSV #1
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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/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