I am using xlwt and xlrd with Python to get some data from something and writing it into an xls file, but I need write data to excel file, just the data, without changing the format cells in (original file)
Here's the code for that : ***
from xlrd import open_workbook
from xlwt import easyxf
from xlutils.copy import copy
data = [['2008','2009'],['Jan','Feb','Feb'],[100,200,300]]
rb = open_workbook('this1.xls')
rs = rb.sheet_by_index(0)
wb = copy(rb)
ws = wb.get_sheet(0)
# I want write data to excel file, just the data, without changing the format cells in (original file)
for i,row in enumerate(data):
for j,cell in enumerate(row):
ws.write(j,i,cell)