Skip to content

Commit 8f149ab

Browse files
committed
DOC: Update docstring format for Styler.to_typst() example
1 parent 373254c commit 8f149ab

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

pandas/io/formats/style.py

+9-6
Original file line numberDiff line numberDiff line change
@@ -1305,13 +1305,16 @@ def to_typst(
13051305
--------
13061306
>>> df = pd.DataFrame({"A": [1, 2], "B": [3, 4]})
13071307
>>> df.style.to_typst() # doctest: +SKIP
1308-
#table(
1309-
columns: 3,
1310-
[], [A], [B],
13111308
1312-
[0], [1], [3],
1313-
[1], [2], [4],
1314-
)
1309+
.. code-block:: typst
1310+
1311+
#table(
1312+
columns: 3,
1313+
[], [A], [B],
1314+
1315+
[0], [1], [3],
1316+
[1], [2], [4],
1317+
)
13151318
"""
13161319
obj = self._copy(deepcopy=True)
13171320

0 commit comments

Comments
 (0)