Skip to content

Commit

Permalink
DOC: Update docstring format for Styler.to_typst() example
Browse files Browse the repository at this point in the history
  • Loading branch information
3w36zj6 committed Jan 22, 2025
1 parent 373254c commit 5863c8a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions pandas/io/formats/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -1305,13 +1305,17 @@ def to_typst(
--------
>>> df = pd.DataFrame({"A": [1, 2], "B": [3, 4]})
>>> df.style.to_typst() # doctest: +SKIP
#table(
columns: 3,
[], [A], [B],
[0], [1], [3],
[1], [2], [4],
)
.. code-block:: typst
#table(
columns: 3,
[], [A], [B],
[0], [1], [3],
[1], [2], [4],
)
"""
obj = self._copy(deepcopy=True)

Expand Down

0 comments on commit 5863c8a

Please sign in to comment.