1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] python :fixe width column export excel

Discussão em 'Python' iniciado por Stack, Outubro 3, 2024 às 12:52.

  1. Stack

    Stack Membro Participativo

    The following code generates an excel file. The width of the column is 8. I would like to fix it to 20 in my python code.

    data = {'Nom \n du collaborateur': ['Jude Bellingham']}
    df = pd.DataFrame(data)
    file_path = "/home/jovyan/workspaces/syne_ctl_prm/output/OUTPUT_EXCEL_FILE.xlsx"
    file_path
    df.to_excel(file_path, index = False)`

    Continue reading...

Compartilhe esta Página