It's quiet simple - when I run this simple syntax in my text editor:
Then the output is:
The problem is how can I remove the column to get this:
[
It's quiet simple - when I run this simple syntax in my text editor:
Then the output is:
The problem is how can I remove the column to get this:
[
Open your file in binary mode: with open(file, 'w+b') as csv_file:
or set newline
to empty string: with open(file, 'w+', newline='') as csv_file: