Skip to content

Commit

Permalink
Fix another example
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Dec 19, 2023
1 parent 432158e commit 8278395
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3939,13 +3939,8 @@ def to_csv(
Create 'out.csv' containing 'df' without indices
>>> df = pd.DataFrame(
... {
... {
... "name": ["Raphael", "Donatello"],
... "mask": ["red", "purple"],
... "weapon": ["sai", "bo staff"],
... }
... }
... [["Raphael", "red", "sai"], ["Donatello", "purple", "bo staff"]],
... columns=["name", "mask", "weapon"],
... )
>>> df.to_csv("out.csv", index=False) # doctest: +SKIP
Expand Down

0 comments on commit 8278395

Please sign in to comment.