If you want to print a DataFrame in LaTeX format, use df.style.to_latex(). This is useful when you want to include your DataFrame in a LaTeX editor.
df.style.to_latex()