%!TEX TS-program = xelatex
\documentclass{article}

\usepackage{booktabs}  % to make a nice table
\setlength{\belowcaptionskip}{2mm}  % to make some space below captions

\author{Koenraad De Smedt}
\title{Example with table from Python}

\begin{document}
\maketitle

This is a small example document with a table.
Table \ref{tab:lang} contains some computer terms in English with Norwegian equivalents (or the other way around).
The table was sorted and styled in Python from a Pandas dataframe that was created from a dict.

This example illustrates how a styled dataframe can be written to file in LaTeX format, which can then be directly imported into a document.
In order to refer to the table, assign a label to the table in Python.
Other properties, such as centering, can also be specified in Python.

\input{transtable.tex}

\end{document}
