Skip to content

Commit 1cd7ae0

Browse files
committed
DOC: Add Returns and Notes sections to docstring.
1 parent 67a4205 commit 1cd7ae0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pandas/core/series.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2920,6 +2920,18 @@ def to_csv(self, path_or_buf=None, index=True, sep=",", na_rep='',
29202920
kwargs
29212921
Additional keyword arguments are passed to
29222922
:func:`pandas.DataFrame.to_csv`
2923+
2924+
Returns
2925+
-------
2926+
None or string
2927+
If path_or_buf is None, returns the result as a string, otherwise
2928+
returns None.
2929+
2930+
Notes
2931+
-----
2932+
Constructs a DataFrame using :func:`~pandas.Series.to_frame`, then
2933+
calls the method :func:`pandas.DataFrame.to_csv` on that DataFrame.
2934+
29232935
"""
29242936

29252937
# convert to DataFrame

0 commit comments

Comments
 (0)