I created 3 separated lists and appended them into a empty.
I would like to write each list in Excel under the column Company, Sector, URL.
I tried to iterate them without success.
I'd like to do it without going through Pandas.
import xlsxwriter
workbook = xlsxwriter.Workbook('example.xlsx')
worksheet = workbook.add_worksheet('To add')
companies = ['House1', 'House2']
sector = ['Kitchen', 'Living room']
url = ['www.house1.com', 'www.house2.com']
list_companies = []
list_companies.append(companies)
list_companies.append(sector)
list_companies.append(url)
head = ['Company', 'Sector', 'URL']
bold = workbook.add_format({'bold':True})
worksheet.write_row(0,0,head, bold)
workbook.close()
