I want to exports csv with python using this code
with open(idFile+'.csv', 'wb') as csvfile:
f = csv.writer(csvfile)
f.writerow(["System", "Title", "Status", "result", "iStatus","Detail","Open Date","Closed Date","Status"])
for x in range(0,len(dataDownload['item'])):
f.writerow([dataDownload['item'][x]["system"],
dataDownload['item'][x]["title"],
dataDownload['item'][x]["stats"],
dataDownload['item'][x]["result"],
dataDownload['item'][x]["i_status"],
dataDownload['item'][x]["detail"],
dataDownload['item'][x]["open_date"],
dataDownload['item'][x]["closed_date"],
dataDownload['item'][x]["status"],
])
return f
its successfully export, but whe i want to open it with excel it makes the data look awful,it on the wrong coloumns. it starts on coloumn result
the data has newline character i already try to replace it with " " but it doesnt effect.