From 289c39cb13ea1aca41e235b827377d39969f651e Mon Sep 17 00:00:00 2001 From: Linus <95619282+linus-md@users.noreply.github.com> Date: Tue, 5 Dec 2023 21:21:13 +0100 Subject: [PATCH] Update pandas/core/generic.py Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> --- pandas/core/generic.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 442518cfbb8f3..a1617934ccb29 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3955,9 +3955,10 @@ def to_csv( >>> df = pd.DataFrame({{'name': ['Raphael', 'Donatello'], ... 'mask': ['red', 'purple'], ... 'weapon': ['sai', 'bo staff']}}) - >>> df.to_csv('out.csv', index=False) + >>> df.to_csv('out.csv', index=False) # doctest: +SKIP + + Create 'out.zip' containing 'out.csv' - Create 'out.zip' containing 'out.csv' # doctest: +SKIP >>> df.to_csv(index=False) 'name,mask,weapon\nRaphael,red,sai\nDonatello,purple,bo staff\n' >>> compression_opts = dict(method='zip',