Skip to content

Instantly share code, notes, and snippets.

@cofearabi
Created May 30, 2012 22:47
Show Gist options
  • Save cofearabi/2839400 to your computer and use it in GitHub Desktop.
Save cofearabi/2839400 to your computer and use it in GitHub Desktop.
(python) make excel worksheet
from pyExcelerator import *
wb = Workbook()
ws = wb.add_sheet('0')
for row in xrange(100):
for col in xrange(10):
ws.write(row, col, '%d, %d' % (row, col))
wb.save(r'test01.xls')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment