df = pd.DataFrame({'a': list(range(10)), 'b': list(range(10, 20))})
with open('my_table.tex', 'w') as f:
    f.write('\\begin{tabular}{' + ' | '.join(['c'] * len(df.columns)) + '}\n')
for i, row in df.iterrows():
    f.write(' & '.join([str(x) for x in row.values]) + ' \\\\\n')
f.write('\\end{tabular}')
Экспорт таблицы LaTeX из pandas DataFrame