Port of pandas.DataFrame.to_markdown() and
pandas.DataFrame.to_latex(). Render any DataFrame or Series
as a Markdown or LaTeX table string.
Mirrors pandas.DataFrame.to_markdown(). Supports alignment, index toggle, and float formatting.
Pass floatFormat: N to round all numeric values to N decimal places.
Mirrors pandas.DataFrame.to_latex(). Supports booktabs, longtable, caption, and label.
Same functions work directly on a Series.