@@ -3324,9 +3324,9 @@ def to_latex(
3324
3324
r"""
3325
3325
Render object to a LaTeX tabular, longtable, or nested table.
3326
3326
3327
- Requires ``\usepackage{{ booktabs} }``. The output can be copy/pasted
3327
+ Requires ``\usepackage{booktabs}``. The output can be copy/pasted
3328
3328
into a main LaTeX document or read from an external file
3329
- with ``\input{{ table.tex} }``.
3329
+ with ``\input{table.tex}``.
3330
3330
3331
3331
.. versionchanged:: 2.0.0
3332
3332
Refactored to use the Styler implementation via jinja2 templating.
@@ -3344,13 +3344,13 @@ def to_latex(
3344
3344
Write row names (index).
3345
3345
na_rep : str, default 'NaN'
3346
3346
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
3348
3348
Formatter functions to apply to columns' elements by position or
3349
3349
name. The result of each function must be a unicode string.
3350
3350
List must be of length equal to the number of columns.
3351
3351
float_format : one-parameter function or str, optional, default None
3352
3352
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
3354
3354
both result in 0.1234 being formatted as 0.12.
3355
3355
sparsify : bool, optional
3356
3356
Set to False for a DataFrame with a hierarchical index to print
@@ -3367,7 +3367,7 @@ def to_latex(
3367
3367
columns of numbers, which default to 'r'.
3368
3368
longtable : bool, optional
3369
3369
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.
3371
3371
By default, the value will be read from the pandas config
3372
3372
module, and set to `True` if the option ``styler.latex.environment`` is
3373
3373
`"longtable"`.
@@ -3405,7 +3405,7 @@ def to_latex(
3405
3405
default value to "r".
3406
3406
multirow : bool, default True
3407
3407
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
3409
3409
centered labels (instead of top-aligned) across the contained
3410
3410
rows, separating groups via clines. The default will be read
3411
3411
from the pandas config module, and is set as the option
@@ -3416,15 +3416,15 @@ def to_latex(
3416
3416
default value to `True`.
3417
3417
caption : str or tuple, optional
3418
3418
Tuple (full_caption, short_caption),
3419
- which results in ``\caption[short_caption]{{ full_caption} }``;
3419
+ which results in ``\caption[short_caption]{full_caption}``;
3420
3420
if a single string is passed, no short caption will be set.
3421
3421
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.
3424
3424
3425
3425
position : str, optional
3426
3426
The LaTeX positional argument for tables, to be placed after
3427
- ``\begin{{} }`` in the output.
3427
+ ``\begin{}`` in the output.
3428
3428
3429
3429
Returns
3430
3430
-------
0 commit comments