@@ -9512,6 +9512,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
9512
9512
path_or_buf : str or file handle, default None
9513
9513
File path or object, if None is provided the result is returned as
9514
9514
a string.
9515
+
9515
9516
.. versionchanged:: 0.24.0
9516
9517
Was previously named "path" for Series.
9517
9518
sep : str, default ','
@@ -9525,6 +9526,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
9525
9526
header : bool or list of str, default True
9526
9527
Write out the column names. If a list of strings is given it is
9527
9528
assumed to be aliases for the column names.
9529
+
9528
9530
.. versionchanged:: 0.24.0
9529
9531
Previously defaulted to False for Series.
9530
9532
index : bool, default True
@@ -9546,6 +9548,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
9546
9548
is path-like, then detect compression from the following
9547
9549
extensions: '.gz', '.bz2', '.zip' or '.xz'. (otherwise no
9548
9550
compression).
9551
+
9549
9552
.. versionchanged:: 0.24.0
9550
9553
'infer' option added and set to default.
9551
9554
quoting : optional constant from csv module
@@ -9563,6 +9566,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
9563
9566
Write MultiIndex columns as a list of tuples (if True) or in
9564
9567
the new, expanded format, where each MultiIndex column is a row
9565
9568
in the CSV (if False).
9569
+
9566
9570
.. deprecated:: 0.21.0
9567
9571
This argument will be removed and will always write each row
9568
9572
of the multi-index as a separate row in the CSV file.
@@ -9586,7 +9590,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
9586
9590
See Also
9587
9591
--------
9588
9592
pandas.read_csv : Load a CSV file into a DataFrame.
9589
- pandas.to_excel: Load an Excel file into a DataFrame.
9593
+ pandas.to_excel : Load an Excel file into a DataFrame.
9590
9594
9591
9595
Examples
9592
9596
--------
0 commit comments