I want to merge two cells in excel using pyExcelerator ,
ws.write_merge(r1=0,r2=1,c1=0, c2=0, label=’test1′, style=style1)
#merge cell1(row=0, column=0) with cell2(row=1, column=0)
Why the errors happen?
AssertionErrors,0 < 0 errors
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because the package author put an assertion in Cell.py that would blow up if he ever tried to write a MULBLANKS record with too few columns. Your one-column-wide merged cells block stepped on the mine.
Suggestion: Instead of pyExcelerator, use xlwt. xlwt is a fork of pyExcelerator, with many bugs fixed (including this one) and several enhancements. pyExcelerator is believed not to be under maintenance. xlwt will run almost all code that works on pyExcelerator. The exceptions are not in demand by xlwt users.
This site will lead you to the download site and inform you about the sibling xlrd and xlutils packages.
Disclosure: I’m the maintainer of xlwt and author of xlrd.
Update This bug is mentioned in the pyExcelerator tracker on sourceforge. However the suggested fix is not one that I would recommend. Just get xlwt.