Hi guys,
from the documentation, I already know how to merge cells in Excel, but I need your help because I can't create a kind of table. below an example:
if I have to add four columns, the result has to be like shown in the image (the merge of the cells depends by the result of the 2**n).
I wrote only the body of the code, but the main part it's difficult to implement. can you help me to write it?
from the documentation, I already know how to merge cells in Excel, but I need your help because I can't create a kind of table. below an example:
![[Image: d1a04b1368591287.jpg]](https://thumbs2.imagebam.com/62/1b/a5/d1a04b1368591287.jpg)
if I have to add four columns, the result has to be like shown in the image (the merge of the cells depends by the result of the 2**n).
I wrote only the body of the code, but the main part it's difficult to implement. can you help me to write it?
1 2 3 4 5 6 7 8 9 10 |
import openpyxl wb = openpyxl.Workbook() ws = wb.active ws.title = "TEST" .. .. wb.save(test.xlsx) |