I am using this code to write csv file
import csv
data = [[1,'more width cell',3],[4,5,6],[7,8,9]]
item_length = len(data[0])
with open('test.csv', 'wb') as test_file:
file_writer = csv.writer(test_file)
for i in range(item_length):
file_writer.writerow([x[i] for x in data])
now output is
1 ,4,7
more,5,8
3 ,6,9
i want
1, ,4,7
more width cell ,5,8
3 ,6,9
Now all cell have same width. how can increase the width of more width cell cell?