[Python] Polars write_excel: rotate some header columns

Discussão em 'Python' iniciado por Stack, Janeiro 15, 2025.

  1. Stack

    Stack Membro Participativo

    When using pl.write_excel, I am looking for a possibility to rotate SOME header columns by 90°.

    I am applying a bunch of input arguments provided by pl.write_excel in order to style the exported dataframe. Among others, I am using header_format.

    df.write_excel(header_format={"rotation": 90}


    This will rotate all header columns by 90°. However, I am looking for a way to rotate only the last three header columns.

    Continue reading...

Compartilhe esta Página