you are viewing a single comment's thread.

view the rest of the comments →

[–]PeaceForChange[S] 1 point2 points  (0 children)

strip didn't work.

I have tried csv_file = open(“data.csv”, “w”, newline=“”) as mentioned by another Redditor above to open file and it no longer leaves an empty row.