import pandas as pd
import numpy as np
from sympy import *
init_printing()
df = pd.DataFrame(np.random.random((5, 5)))
Matrix(df.as_matrix())
Troubleshooting Latex table from pandas dataframe to_latex()