Got a really simple problem. But can't figure out my mistake. I'm want to save a list csv_line = ["name 1", "value 1", "name 2", "value 2",...]
of values which get updated in a specific time interval as a csv file. My current approchach (inspired by this post) looks like:
with open("live_data.csv", "a", newline="") as file:
writer = csv.writer(file)
writer.writerow(csv_line)
file.close()
which results in an output like:
n
a
m
e
1
v
a
...
when i clearly want my csv to look like:
entry1
entry2
...
Guess I'm missing something really obvious here...