Hiya Rania,
openpyxl is row-oriented which means you're going to have to write one
item from each column per row. Fortunately, this is easy with Python and
openpyxl.
We'll call your lists l1, l2, l3, … l2 but how you make them from your XML
is up to you.
To write these as columns with openpyxl:
from openpyxl import Workbook
wb = Workbook()
ws = wb.active
for row in zip(l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12):
ws.append(row)
wb.save("columns.xlsx")
Good luck!
Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Kronenstr. 27a
Düsseldorf
D- 40217
Tel:
+49-211-600-3657
Mobile:
+49-178-782-6226