Skip to content

Commit 9e0c3fe

Browse files
committed
DOC: update docstring for DataFrame.to_csv
1 parent cbe91d7 commit 9e0c3fe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/core/frame.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,8 @@ def to_csv(self, path_or_buf, sep=",", na_rep='', float_format=None,
11261126
----------
11271127
path_or_buf : string or file handle / StringIO
11281128
File path
1129+
sep : character, default ","
1130+
Field delimiter for the output file.
11291131
na_rep : string, default ''
11301132
Missing data representation
11311133
float_format : string, default None
@@ -1143,12 +1145,13 @@ def to_csv(self, path_or_buf, sep=",", na_rep='', float_format=None,
11431145
sequence should be given if the DataFrame uses MultiIndex. If
11441146
False do not print fields for index names. Use index_label=False
11451147
for easier importing in R
1148+
nanRep : deprecated, use na_rep
11461149
mode : Python write mode, default 'w'
1147-
sep : character, default ","
1148-
Field delimiter for the output file.
11491150
encoding : string, optional
11501151
a string representing the encoding to use if the contents are
11511152
non-ascii, for python versions prior to 3
1153+
quoting : optional constant from csv module
1154+
defaults to csv.QUOTE_MINIMAL
11521155
"""
11531156
if nanRep is not None: # pragma: no cover
11541157
import warnings

0 commit comments

Comments
 (0)