pandas dataframe columns names latex code example
Example: convert pandas data frame to latex file
with open('mytable.tex', 'w') as tf:
tf.write(df.to_latex())
with open('mytable.tex', 'w') as tf:
tf.write(df.to_latex())