I am trying to write some text onto csv file. When I open it each letter is taking a cell. But I want each string to be in a cell. How do I do it. I am using python 2.7.10
Here is the simple code:
with open("output.csv",'wb') as f:
writer = csv.writer(f, dialect='excel')
writer.writerows('Apples:10 Mangoes:15 bananas:20')
I want output to be like this(total 6 cells)
Apples 10 Mangoes 15 Bananas 20
