@@ -3324,9 +3324,9 @@ def to_latex(
33243324 r"""
33253325 Render object to a LaTeX tabular, longtable, or nested table.
33263326
3327- Requires ``\usepackage{{ booktabs} }``. The output can be copy/pasted
3327+ Requires ``\usepackage{booktabs}``. The output can be copy/pasted
33283328 into a main LaTeX document or read from an external file
3329- with ``\input{{ table.tex} }``.
3329+ with ``\input{table.tex}``.
33303330
33313331 .. versionchanged:: 2.0.0
33323332 Refactored to use the Styler implementation via jinja2 templating.
@@ -3344,13 +3344,13 @@ def to_latex(
33443344 Write row names (index).
33453345 na_rep : str, default 'NaN'
33463346 Missing data representation.
3347- formatters : list of functions or dict of {{ str: function} }, optional
3347+ formatters : list of functions or dict of {str: function}, optional
33483348 Formatter functions to apply to columns' elements by position or
33493349 name. The result of each function must be a unicode string.
33503350 List must be of length equal to the number of columns.
33513351 float_format : one-parameter function or str, optional, default None
33523352 Formatter for floating point numbers. For example
3353- ``float_format="%.2f"`` and ``float_format="{{ :0.2f} }".format`` will
3353+ ``float_format="%.2f"`` and ``float_format="{:0.2f}".format`` will
33543354 both result in 0.1234 being formatted as 0.12.
33553355 sparsify : bool, optional
33563356 Set to False for a DataFrame with a hierarchical index to print
@@ -3367,7 +3367,7 @@ def to_latex(
33673367 columns of numbers, which default to 'r'.
33683368 longtable : bool, optional
33693369 Use a longtable environment instead of tabular. Requires
3370- adding a \usepackage{{ longtable} } to your LaTeX preamble.
3370+ adding a \usepackage{longtable} to your LaTeX preamble.
33713371 By default, the value will be read from the pandas config
33723372 module, and set to `True` if the option ``styler.latex.environment`` is
33733373 `"longtable"`.
@@ -3405,7 +3405,7 @@ def to_latex(
34053405 default value to "r".
34063406 multirow : bool, default True
34073407 Use \multirow to enhance MultiIndex rows. Requires adding a
3408- \usepackage{{ multirow} } to your LaTeX preamble. Will print
3408+ \usepackage{multirow} to your LaTeX preamble. Will print
34093409 centered labels (instead of top-aligned) across the contained
34103410 rows, separating groups via clines. The default will be read
34113411 from the pandas config module, and is set as the option
@@ -3416,15 +3416,15 @@ def to_latex(
34163416 default value to `True`.
34173417 caption : str or tuple, optional
34183418 Tuple (full_caption, short_caption),
3419- which results in ``\caption[short_caption]{{ full_caption} }``;
3419+ which results in ``\caption[short_caption]{full_caption}``;
34203420 if a single string is passed, no short caption will be set.
34213421 label : str, optional
3422- The LaTeX label to be placed inside ``\label{{} }`` in the output.
3423- This is used with ``\ref{{} }`` in the main ``.tex`` file.
3422+ The LaTeX label to be placed inside ``\label{}`` in the output.
3423+ This is used with ``\ref{}`` in the main ``.tex`` file.
34243424
34253425 position : str, optional
34263426 The LaTeX positional argument for tables, to be placed after
3427- ``\begin{{} }`` in the output.
3427+ ``\begin{}`` in the output.
34283428
34293429 Returns
34303430 -------
0 commit comments