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.