File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3367,7 +3367,7 @@ def to_latex(
3367
3367
-----
3368
3368
3369
3369
.. 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
3371
3371
``to_latex`` and no longer uses the DataFrameRenderer. It is advised that
3372
3372
users switch to using Styler, since this implementation is more frequently
3373
3373
updated and contains much more flexibility with the output. The following
@@ -3394,7 +3394,8 @@ def to_latex(
3394
3394
formatter={"name": str.upper}, na_rep="-", precision=1, escape="latex"
3395
3395
)
3396
3396
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,
3398
3399
3399
3400
.. code-block:: python
3400
3401
@@ -3413,14 +3414,14 @@ def to_latex(
3413
3414
... formatters={"name": str.upper},
3414
3415
... float_format="{:.1f}".format,
3415
3416
... ) # doctest: +SKIP
3416
- \begin{{ tabular}}{{ lrr} }
3417
+ \begin{tabular}{ lrr}
3417
3418
\toprule
3418
3419
name & age & height \\
3419
- \\ midrule
3420
+ \midrule
3420
3421
RAPHAEL & 26 & 181.2 \\
3421
3422
DONATELLO & 45 & 177.7 \\
3422
3423
\bottomrule
3423
- \end{{ tabular} }
3424
+ \end{tabular}
3424
3425
"""
3425
3426
msg = (
3426
3427
"`col_space` is deprecated. Whitespace in LaTeX does not impact "
You can’t perform that action at this time.
0 commit comments