I have a simple python dictionary in format:
{"key1":1,"key2":42,"key3":"foo"}
And would like to store in a csv file in which the keys are the headers and the values the cell values of the second row:
| "key1" | "Key2" | "key3" |
| 1 | 42 | "foo" |
the csv file will only have 2 rows.
I think it is possible using csv and python but can't find the correct approach (should be so easy). My rows/columns are always swapped.