Technical notes‎ > ‎

Create Excel File with Python

posted May 24, 2014, 11:40 PM by Le Tuan Anh   [ updated May 24, 2014, 11:46 PM ]
Install Xlsx

$ git clone https://github.com/jmcnamara/XlsxWriter.git
$ cd XlsxWriter
$ sudo python setup.py install

Code:

import xlsxwriter

workbook = xlsxwriter.Workbook('hello.xlsx')
worksheet = workbook.add_worksheet()

worksheet.write('A1', 'Hello world')

workbook.close()


Source: https://xlsxwriter.readthedocs.org/getting_started.html
Comments