ormats.style.Styler.set_properties.html)
    * [ pandas.io.formats.style.Styler.set_uuid ](pandas.io.formats.style.Styler.set_uuid.html)
    * [ pandas.io.formats.style.Styler.clear ](pandas.io.formats.style.Styler.clear.html)
    * [ pandas.io.formats.style.Styler.pipe ](pandas.io.formats.style.Styler.pipe.html)
    * [ pandas.io.formats.style.Styler.highlight_null ](pandas.io.formats.style.Styler.highlight_null.html)
    * [ pandas.io.formats.style.Styler.highlight_max ](pandas.io.formats.style.Styler.highlight_max.html)
    * [ pandas.io.formats.style.Styler.highlight_min ](pandas.io.formats.style.Styler.highlight_min.html)
    * [ pandas.io.formats.style.Styler.highlight_between ](pandas.io.formats.style.Styler.highlight_between.html)
    * [ pandas.io.formats.style.Styler.highlight_quantile ](pandas.io.formats.style.Styler.highlight_quantile.html)
    * [ pandas.io.formats.style.Styler.background_gradient ](pandas.io.formats.style.Styler.background_gradient.html)
    * [ pandas.io.formats.style.Styler.text_gradient ](pandas.io.formats.style.Styler.text_gradient.html)
    * [ pandas.io.formats.style.Styler.bar ](pandas.io.formats.style.Styler.bar.html)
    * [ pandas.io.formats.style.Styler.to_html ](pandas.io.formats.style.Styler.to_html.html)
    * pandas.io.formats.style.Styler.to_latex 
    * [ pandas.io.formats.style.Styler.to_excel ](pandas.io.formats.style.Styler.to_excel.html)
    * [ pandas.io.formats.style.Styler.to_string ](pandas.io.formats.style.Styler.to_string.html)
    * [ pandas.io.formats.style.Styler.export ](pandas.io.formats.style.Styler.export.html)
    * [ pandas.io.formats.style.Styler.use ](pandas.io.formats.style.Styler.use.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.io.fo... 

#  pandas.io.formats.style.Styler.to_latex  #

Styler.  to_latex  (  _ buf  =  None  _ , _ *  _ , _ column_format  =  None  _
, _ position  =  None  _ , _ position_float  =  None  _ , _ hrules  =  None  _
, _ clines  =  None  _ , _ label  =  None  _ , _ caption  =  None  _ , _
sparse_index  =  None  _ , _ sparse_columns  =  None  _ , _ multirow_align  =
None  _ , _ multicol_align  =  None  _ , _ siunitx  =  False  _ , _
environment  =  None  _ , _ encoding  =  None  _ , _ convert_css  =  False  _
)  [ [source]  ](https://github.com/pandas-
dev/pandas/blob/v2.2.2/pandas/io/formats/style.py#L604-L1172) #

    

Write Styler to a file, buffer or string in LaTeX format.

New in version 1.3.0.

Parameters  :

    

**buf** str, path object, file-like object, or None, default None

    

String, path object (implementing ` os.PathLike[str]  ` ), or file-like object
implementing a string ` write()  ` function. If None, the result is returned
as a string.

**column_format** str, optional

    

The LaTeX column specification placed in location:

\begin{tabular}{<column_format>}

Defaults to âlâ for index and non-numeric data columns, and, for numeric
data columns, to ârâ by default, or âSâ if ` siunitx  ` is ` True  ` .

**position** str, optional

    

The LaTeX positional argument (e.g. âh!â) for tables, placed in location:

` \\begin{table}[<position>]  ` .

**position_float** {âcenteringâ, âraggedleftâ, âraggedrightâ},
optional

    

The LaTeX float command placed in location:

\begin{table}[<position>]

\<position_float>

Cannot be used if ` environment  ` is âlongtableâ.

**hrules** bool

    

Set to  True  to add \toprule, \midrule and \bottomrule from the {booktabs}
LaTeX package. Defaults to ` pandas.options.styler.latex.hrules  ` , which is
False  .

Changed in version 1.4.0.

**clines** str, optional

    

Use to control adding \cline commands for the index labels separation.
Possible values are:

>   * None  : no clin