Skip to content

Commit 41fa426

Browse files
committed
doc change
1 parent 493b884 commit 41fa426

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pandas/core/generic.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -3367,7 +3367,7 @@ def to_latex(
33673367
-----
33683368
33693369
.. note::
3370-
As of v1.5.0 this method has changed to use the Styler implementation of
3370+
As of v1.5.0 this method has changed to use the ``Styler`` implementation of
33713371
``to_latex`` and no longer uses the DataFrameRenderer. It is advised that
33723372
users switch to using Styler, since this implementation is more frequently
33733373
updated and contains much more flexibility with the output. The following
@@ -3394,7 +3394,8 @@ def to_latex(
33943394
formatter={"name": str.upper}, na_rep="-", precision=1, escape="latex"
33953395
)
33963396
3397-
To control other aspects we use the ``Styler.to_latex`` arguments such as,
3397+
To control other aspects we use the ``Styler.to_latex`` arguments, as
3398+
documented, such as,
33983399
33993400
.. code-block:: python
34003401
@@ -3413,14 +3414,14 @@ def to_latex(
34133414
... formatters={"name": str.upper},
34143415
... float_format="{:.1f}".format,
34153416
... ) # doctest: +SKIP
3416-
\begin{{tabular}}{{lrr}}
3417+
\begin{tabular}{lrr}
34173418
\toprule
34183419
name & age & height \\
3419-
\\midrule
3420+
\midrule
34203421
RAPHAEL & 26 & 181.2 \\
34213422
DONATELLO & 45 & 177.7 \\
34223423
\bottomrule
3423-
\end{{tabular}}
3424+
\end{tabular}
34243425
"""
34253426
msg = (
34263427
"`col_space` is deprecated. Whitespace in LaTeX does not impact "

0 commit comments

Comments
 (0)