1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] python :fixe width column export excel

Discussão em 'Python' iniciado por Stack, Outubro 3, 2024.

  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