_sql.html)
    * [ pandas.read_gbq ](pandas.read_gbq.html)
    * [ pandas.read_stata ](pandas.read_stata.html)
    * [ pandas.DataFrame.to_stata ](pandas.DataFrame.to_stata.html)
    * [ pandas.io.stata.StataReader.data_label ](pandas.io.stata.StataReader.data_label.html)
    * [ pandas.io.stata.StataReader.value_labels ](pandas.io.stata.StataReader.value_labels.html)
    * [ pandas.io.stata.StataReader.variable_labels ](pandas.io.stata.StataReader.variable_labels.html)
    * [ pandas.io.stata.StataWriter.write_file ](pandas.io.stata.StataWriter.write_file.html)
  * [ General functions ](../general_functions.html)
  * [ Series ](../series.html)
  * [ DataFrame ](../frame.html)
  * [ pandas arrays, scalars, and data types ](../arrays.html)
  * [ Index objects ](../indexing.html)
  * [ Date offsets ](../offset_frequency.html)
  * [ Window ](../window.html)
  * [ GroupBy ](../groupby.html)
  * [ Resampling ](../resampling.html)
  * [ Style ](../style.html)
  * [ Plotting ](../plotting.html)
  * [ Options and settings ](../options.html)
  * [ Extensions ](../extensions.html)
  * [ Testing ](../testing.html)
  * [ Missing values ](../missing_value.html)

  * [ __ ](../../index.html)
  * [ API reference ](../index.html)
  * [ Input/output ](../io.html)
  * pandas.DataF... 

#  pandas.DataFrame.to_latex  #

DataFrame.  to_latex  (  _ buf  =  None  _ , _ *  _ , _ columns  =  None  _ ,
_ header  =  True  _ , _ index  =  True  _ , _ na_rep  =  'NaN'  _ , _
formatters  =  None  _ , _ float_format  =  None  _ , _ sparsify  =  None  _ ,
_ index_names  =  True  _ , _ bold_rows  =  False  _ , _ column_format  =
None  _ , _ longtable  =  None  _ , _ escape  =  None  _ , _ encoding  =  None
_ , _ decimal  =  '.'  _ , _ multicolumn  =  None  _ , _ multicolumn_format  =
None  _ , _ multirow  =  None  _ , _ caption  =  None  _ , _ label  =  None  _
, _ position  =  None  _ )  [ [source]  ](https://github.com/pandas-
dev/pandas/blob/v2.2.2/pandas/core/generic.py#L3387-L3673) #

    

Render object to a LaTeX tabular, longtable, or nested table.

Requires ` \usepackage{{booktabs}}  ` . The output can be copy/pasted into a
main LaTeX document or read from an external file with ` \input{{table.tex}}
` .

Changed in version 2.0.0:  Refactored to use the Styler implementation via
jinja2 templating.

Parameters  :

    

**buf** str, Path or StringIO-like, optional, default None

    

Buffer to write to. If None, the output is returned as a string.

**columns** list of label, optional

    

The subset of columns to write. Writes all columns by default.

**header** bool or list of str, default True

    

Write out the column names. If a list of strings is given, it is assumed to be
aliases for the column names.

**index** bool, default True

    

Write row names (index).

**na_rep** str, default âNaNâ

    

Missing data representation.

**formatters** list of functions or dict of {{str: function}}, optional

    

Formatter functions to apply to columnsâ elements by position or name. The
result of each function must be a unicode string. List must be of length equal
to the number of columns.

**float_format** one-parameter function or str, optional, default None

    

Formatter for floating point numbers. For example ` float_format="%.2f"  ` and
` float_format="{{:0.2f}}".format  ` will both result in 0.1234 being
formatted as 0.12.

**sparsify** bool, optional

    

Set to False for a DataFrame with a hierarchical index to print every
multiindex key at each row. By default, the value will be read from the config
module.

**index_names** bool, default True

    

Prints the names of the indexes.

**bold_rows** bool, default False

    

Make the row labels bold in the output.

**column_format** str, optional

    

The columns format as specified in [ LaTeX table format
](https://en.wikibooks.org/wiki/LaTeX/Tables) e.g. ârclâ for 3 columns. By
default, âlâ will be used for all columns except columns of numbers, which
default to ârâ