📜  pandas to latex table width pylatex - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:14.684000             🧑  作者: Mango

代码示例1
doc.packages.append(Package('adjustbox')) # Include the package

doc.append(NoEscape(r'\begin{adjustbox}{width=1\textwidth}'))
table.append(NoEscape(df.to_latex(escape=False)))    # Your df.to_latex() code here
doc.append(NoEscape(r'\end{adjustbox}'))