L
L
lemonlimelike2020-07-21 13:59:05
Python
lemonlimelike, 2020-07-21 13:59:05

How to make headers the first line?

Hello! There is such a table with the following title: 5f16c9de19487339695441.png

With the help of the openpyxl module, I read this table, take what I need and put all the data in another table.
Also it would be desirable to transfer the same headings to that, other table. How to do it?

I write to the table in the usual way:

wbf = Workbook()
ws = wbf.active
for item in list_data:
    ws.append([item])

wbf.save(file_name)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Tikhonov, 2020-07-21
@lemonlimelike

Have you looked at the documentation ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question