We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Styler.to_typst()
1 parent 373254c commit 8f149abCopy full SHA for 8f149ab
pandas/io/formats/style.py
@@ -1305,13 +1305,16 @@ def to_typst(
1305
--------
1306
>>> df = pd.DataFrame({"A": [1, 2], "B": [3, 4]})
1307
>>> df.style.to_typst() # doctest: +SKIP
1308
- #table(
1309
- columns: 3,
1310
- [], [A], [B],
1311
1312
- [0], [1], [3],
1313
- [1], [2], [4],
1314
- )
+ .. code-block:: typst
+
+ #table(
+ columns: 3,
+ [], [A], [B],
1315
+ [0], [1], [3],
1316
+ [1], [2], [4],
1317
+ )
1318
"""
1319
obj = self._copy(deepcopy=True)
1320
0 commit comments