title: Python: Formatting a Pandas dataframe head with LaTex
body: <p>I have made a Pandas dataframe from several NumPy arrays and tried to format columns heads using LaTex, but it looks awful. I'm working with Jupyter Notebook.</p>
  <pre><code>import numpy as np
  import pandas as pd
  </code></pre>
  <p>Arrays (one instance out of five) look like this:</p>
  <pre><code>coeficientes = [0.5601, 0.3315, 0.2260, 0.1429, 0.0695]
  coeficientes = np.array(coeficientes)
  </code></pre>
  <p>The dataframe:</p>
  <pre><code>tabla_resumen = pd.DataFrame({'$x_{n-i+1}$': submuestra1, 
                                '$x_{i}$': submuestra2, 
                                '$x_{n-i+1} - x_{i}$': diferencias, 
                                '$a_{n-i+i}$': coeficientes,
                                '$(x_{n-i+1} - x_{i})(a_{n-i+i})$': sumandos
                               })
  tabla_resumen
  </code></pre>
  <p>The way it looks:</p>
  <p><a href="https://i.stack.imgur.com/JKX1s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JKX1s.png" alt="enter image description here" /></a></p>
  <p>Are there any formatting options to make it look better?</p>