Skip to content

Commit d81e226

Browse files
authored
DOC: Fix DataFrame.to_csv example (#31461)
* DOC: Fix DataFrame.to_csv example * Fix white line
1 parent 882dbee commit d81e226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/generic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3077,10 +3077,10 @@ def to_csv(
30773077
>>> df.to_csv(index=False)
30783078
'name,mask,weapon\nRaphael,red,sai\nDonatello,purple,bo staff\n'
30793079
3080-
# create 'out.zip' containing 'out.csv'
3080+
Create 'out.zip' containing 'out.csv'
3081+
30813082
>>> compression_opts = dict(method='zip',
30823083
... archive_name='out.csv') # doctest: +SKIP
3083-
30843084
>>> df.to_csv('out.zip', index=False,
30853085
... compression=compression_opts) # doctest: +SKIP
30863086
"""

0 commit comments

Comments
 (0)