Skip to content

Commit

Permalink
STY: Apply Ruff suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
3w36zj6 committed Jan 19, 2025
1 parent 209b2df commit dda68e3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pandas/io/formats/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,13 +1296,20 @@ def to_typst(
See Also
--------
DataFrame.to_typst : Write a DataFrame to a file, buffer or string in Typst format.
DataFrame.to_typst : Write a DataFrame to a file,
buffer or string in Typst format.
Examples
--------
>>> df = pd.DataFrame({"A": [1, 2], "B": [3, 4]})
>>> df.style.to_typst()
'#table(\\n columns: 3,\\n [], [A], [B],\\n\\n [0], [1], [3],\\n [1], [2], [4],\\n)'
>>> df.style.to_typst() # doctest: +SKIP
#table(
columns: 3,
[], [A], [B],
[0], [1], [3],
[1], [2], [4],
)
"""
obj = self._copy(deepcopy=True)

Expand Down

0 comments on commit dda68e3

Please sign in to comment.