Skip to content

Commit 9d597a6

Browse files
committed
ENH: Pass keyword arguments to DataFrame.to_csv
1 parent 63bb4a0 commit 9d597a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/series.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2881,7 +2881,7 @@ def from_csv(cls, path, sep=',', parse_dates=True, header=None,
28812881
def to_csv(self, path_or_buf=None, index=True, sep=",", na_rep='',
28822882
float_format=None, header=False, index_label=None,
28832883
mode='w', encoding=None, compression=None, date_format=None,
2884-
decimal='.'):
2884+
decimal='.', **kwargs):
28852885
"""
28862886
Write Series to a comma-separated values (csv) file
28872887
@@ -2928,7 +2928,7 @@ def to_csv(self, path_or_buf=None, index=True, sep=",", na_rep='',
29282928
float_format=float_format, header=header,
29292929
index_label=index_label, mode=mode,
29302930
encoding=encoding, compression=compression,
2931-
date_format=date_format, decimal=decimal)
2931+
date_format=date_format, decimal=decimal, **kwargs)
29322932
if path is None:
29332933
return result
29342934

0 commit comments

Comments
 (0)