Skip to content

Commit 8f67bad

Browse files
Backport PR #31461: DOC: Fix DataFrame.to_csv example (#31481)
Co-authored-by: Sebastián Vanrell <[email protected]>
1 parent 3c25fd6 commit 8f67bad

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
@@ -3166,10 +3166,10 @@ def to_csv(
31663166
>>> df.to_csv(index=False)
31673167
'name,mask,weapon\nRaphael,red,sai\nDonatello,purple,bo staff\n'
31683168
3169-
# create 'out.zip' containing 'out.csv'
3169+
Create 'out.zip' containing 'out.csv'
3170+
31703171
>>> compression_opts = dict(method='zip',
31713172
... archive_name='out.csv') # doctest: +SKIP
3172-
31733173
>>> df.to_csv('out.zip', index=False,
31743174
... compression=compression_opts) # doctest: +SKIP
31753175
"""

0 commit comments

Comments
 (0)