Re: [Tutor] exporting lists into CSV issue.

2019-01-22 Thread mhysnm1964
All, I have addressed the issue. When I open the file, I am using newline='' as one of the parameters. with open ('books-list.csv', 'w', newline='', encode='utf-8') as wf: I added the UTF-8 as I discovered after sending my original email I was not importing all the books. I discovered

Re: [Tutor] exporting lists into CSV issue.

2019-01-22 Thread Peter Otten
mhysnm1...@gmail.com wrote: > Now I am > trying to export to a CSV file. There is no syntax or logical errors I can > see. The information is being exported to the CSV. But when I bring it > into Excel. I am getting a blank row between each row. > with open ('books-list.csv', 'w') as wf: Try swi

Re: [Tutor] exporting lists into CSV issue.

2019-01-22 Thread Alan Gauld via Tutor
On 22/01/2019 09:25, mhysnm1...@gmail.com wrote: > being exported to the CSV. But when I bring it into Excel. I am getting a > blank row between each row. The exported data looks like this: I can't see anything obvious. > import plistlib, pprint, csv > > with open("library.xml", "rb") as f: >