how to prevent \textbackslash in LaTeX from Python code example
Example: how to prevent \textbackslash in LaTeX from Python
In [13]: print df.to_latex(escape=False)
# Result:
\begin{tabular}{lrr}
\toprule
{} & $ \beta $ & $ \gamma $ \\
\midrule
0 & 1 & 2 \\
1 & 3 & 4 \\
\bottomrule
\end{tabular}