Syntax Rommel
Syntax Rommel

Reputation: 942

Insert list into Excel column

Is it possible to insert list to Excel column using xlsxwriter library?

This is my current script:

list = ['a','b','c','d']
for letter in list                          
        list.append(letter)
worksheet.write('A1', list)

Can anybody could give me a simple insert of list so that I can have my reference?

Upvotes: 1

Views: 23952

Answers (1)

tells
tells

Reputation: 630

Use:

worksheet.write_column('A1', list)

docs: https://xlsxwriter.readthedocs.org/worksheet.html#write_column

Upvotes: 5

Related Questions