Skip to content

Commit c9c61c3

Browse files
committed
ivanov doc comment
1 parent 2d5c419 commit c9c61c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/core/generic.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -3367,7 +3367,7 @@ def to_latex(
33673367
33683368
.. note::
33693369
As of v1.5.0 this method has changed to use the ``Styler`` implementation of
3370-
``to_latex`` and no longer uses the DataFrameRenderer. It is advised that
3370+
``to_latex`` via ``jinja2`` templating. It is advised that
33713371
users switch to using Styler, since this implementation is more frequently
33723372
updated and contains much more flexibility with the output. The following
33733373
examples indicate how this method now replicates the Styler implementation
@@ -3384,13 +3384,14 @@ def to_latex(
33843384
33853385
styler.hide(axis="index").hide(axis="columns")
33863386
3387-
To use ``formatters``, ``na_rep``, ``decimal`` and ``float_format``,
3387+
To use ``formatters``, ``na_rep``, ``decimal``, ``float_format``, and
33883388
``escape`` we use,
33893389
33903390
.. code-block:: python
33913391
33923392
styler.format(
3393-
formatter={"name": str.upper}, na_rep="-", precision=1, escape="latex"
3393+
formatter={"name": str.upper}, na_rep="-", precision=1,
3394+
escape="latex", decimal=","
33943395
)
33953396
33963397
To control other aspects we use the ``Styler.to_latex`` arguments, as

0 commit comments

Comments
 (0)