[Python] Python 3 - openpyxl - Iterating through column by name

Discussão em 'Python' iniciado por Stack, Março 19, 2025.

  1. Stack

    Stack Membro Participativo

    What is the easiest way using openpyxl to iterate through a column not by number but by column header (string value in first row of ws):

    Something like this:

    for cell in ws.columns['revenue']:
    print(cell.value)

    Continue reading...

Compartilhe esta Página