pandas to latex table width pylatex code example
Example: pandas to latex table width pylatex
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}'))