Skip to content

Commit cf32368

Browse files
committed
add back in check for path=None
1 parent 5bbb734 commit cf32368

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/series.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2927,6 +2927,8 @@ def to_csv(self, path=None, index=True, sep=",", na_rep='',
29272927
index_label=index_label, mode=mode,
29282928
encoding=encoding, compression=compression,
29292929
date_format=date_format, decimal=decimal)
2930+
if path is None:
2931+
return result
29302932

29312933
@Appender(generic._shared_docs['to_excel'] % _shared_doc_kwargs)
29322934
def to_excel(self, excel_writer, sheet_name='Sheet1', na_rep='',

0 commit comments

Comments
 (0)