@@ -9266,13 +9266,15 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
9266
9266
quotechar = '"' , line_terminator = '\n ' , chunksize = None ,
9267
9267
tupleize_cols = None , date_format = None , doublequote = True ,
9268
9268
escapechar = None , decimal = '.' ):
9269
- r"""Write DataFrame to a comma-separated values (csv) file
9269
+ r"""Write object to a comma-separated values (csv) file
9270
9270
9271
9271
Parameters
9272
9272
----------
9273
9273
path_or_buf : string or file handle, default None
9274
9274
File path or object, if None is provided the result is returned as
9275
9275
a string.
9276
+ .. versionchanged:: 0.24.0
9277
+ Was previously named "path" for Series.
9276
9278
sep : character, default ','
9277
9279
Field delimiter for the output file.
9278
9280
na_rep : string, default ''
@@ -9289,7 +9291,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
9289
9291
index_label : string or sequence, or False, default None
9290
9292
Column label for index column(s) if desired. If None is given, and
9291
9293
`header` and `index` are True, then the index names are used. A
9292
- sequence should be given if the DataFrame uses MultiIndex. If
9294
+ sequence should be given if the object uses MultiIndex. If
9293
9295
False do not print fields for index names. Use index_label=False
9294
9296
for easier importing in R
9295
9297
mode : str
@@ -9330,6 +9332,8 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
9330
9332
Character recognized as decimal separator. E.g. use ',' for
9331
9333
European data
9332
9334
9335
+ .. versionchanged:: 0.24.0
9336
+ The order of arguments for Series was changed.
9333
9337
"""
9334
9338
9335
9339
df = self if isinstance (self , ABCDataFrame ) else self .to_frame ()
0 commit comments