DataFrame.to_latex()
pandas.DataFrame.to_latex
-
DataFrame.to_latex(buf=None, columns=None, col_space=None, colSpace=None, header=True, index=True, na_rep='NaN', formatters=None, float_format=None, sparsify=None, index_names=True, bold_rows=True, column_format=None, longtable=None, escape=None, encoding=None, decimal='.')
-
Render a DataFrame to a tabular environment table. You can splice this into a LaTeX document. Requires usepackage{booktabs}.
to_latex
-specific options:-
bold_rows : boolean, default True
- Make the row labels bold in the output
-
column_format : str, default None
- The columns format as specified in LaTeX table format e.g ‘rcl’ for 3 columns
登录查看完整内容 -