docs: def to_latex(self, buf=None, upper_triangle=True, **kwargs):
          """Render a DataFrame to a tabular environment table.
  
          You can splice this into a LaTeX document.
          Requires ``\\usepackage{booktabs}``.
          Wrapper around the :meth:`pandas.DataFrame.to_latex` method.
          """
          out = self._sympy_formatter()
          out = out._abs_ref_formatter(format_as='latex')
          if not upper_triangle:
              out = out._remove_upper_triangle()
          return out._frame.to_latex(buf=buf, **kwargs)