Skip to content

Commit e1fb1a8

Browse files
committed
DOC: Add deprecated to path and versionadded to kwargs
1 parent 051dc3b commit e1fb1a8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/core/series.py

+8
Original file line numberDiff line numberDiff line change
@@ -2888,6 +2888,11 @@ def to_csv(self, path_or_buf=None, index=True, sep=",", na_rep='',
28882888
28892889
Parameters
28902890
----------
2891+
path : string or file handle, default None
2892+
2893+
.. deprecated:: 0.23.0
2894+
Pass in `path_or_buf` instead.
2895+
28912896
path_or_buf : string or file handle, default None
28922897
File path or object, if None is provided the result is returned as
28932898
a string.
@@ -2922,6 +2927,9 @@ def to_csv(self, path_or_buf=None, index=True, sep=",", na_rep='',
29222927
Additional keyword arguments are passed to
29232928
:func:`pandas.DataFrame.to_csv`
29242929
2930+
.. versionadded:: 0.23.0
2931+
2932+
29252933
Returns
29262934
-------
29272935
None or string

0 commit comments

Comments
 (0)