Skip to content

Adding pandas dataframes to pylatex sections breaks with pandas 2.0 #368

@antipisa

Description

@antipisa

What is the correct way to append a pandas dataframe to a latex section with pandas 2.0?



with section.create(Table(position='H')) as table_sec:

    table_sec.append(NoEscape(df.to_latex(longtable=True, multicolumn=True, sparsify=True)))

causes latexmk to fail when df has a multilevel index or column.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions