Error in writing excel docs with python -
i writing program fetch bunch of data web write in excel document. in last step getting error while trying write cells , not sure error means or fix it.
the error looks this:
file "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/xlwt/worksheet.py", line 1030, in write self.row(r).write(c, label, style) file "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/xlwt/row.py", line 235, in write self.__adjust_bound_col_idx(col) file "/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/xlwt/row.py", line 78, in __adjust_bound_col_idx raise valueerror("column index (%r) not int in range(256)" % arg) valueerror: column index (256) not int in range(256) 149-166-202-213:peter peter$`
the error supposedly on line 106, blank. seems trying write cells not within range of document, how extend range of excel document or change way i'm writing cells help?
btw, modules i'm using access excel docs here
the maximum number of columns in .xls
spreadsheet 256 (according microsoft). if go excel 2010 format, limit increased 16,384.
from (rather brief) research, looks openpyxl might work you. can't find hard-coded column limits in code or docs, , unfortunately don't have version of excel test you, looks promising.
Comments
Post a Comment