Skip to content

Commit dda68e3

Browse files
committed
STY: Apply Ruff suggestions
1 parent 209b2df commit dda68e3

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

pandas/io/formats/style.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -1296,13 +1296,20 @@ def to_typst(
12961296
12971297
See Also
12981298
--------
1299-
DataFrame.to_typst : Write a DataFrame to a file, buffer or string in Typst format.
1299+
DataFrame.to_typst : Write a DataFrame to a file,
1300+
buffer or string in Typst format.
13001301
13011302
Examples
13021303
--------
13031304
>>> df = pd.DataFrame({"A": [1, 2], "B": [3, 4]})
1304-
>>> df.style.to_typst()
1305-
'#table(\\n columns: 3,\\n [], [A], [B],\\n\\n [0], [1], [3],\\n [1], [2], [4],\\n)'
1305+
>>> df.style.to_typst() # doctest: +SKIP
1306+
#table(
1307+
columns: 3,
1308+
[], [A], [B],
1309+
1310+
[0], [1], [3],
1311+
[1], [2], [4],
1312+
)
13061313
"""
13071314
obj = self._copy(deepcopy=True)
13081315

0 commit comments

Comments
 (0)