Skip to content

Commit 3ab9dbd

Browse files
DOC: fixup spacing in to_csv docstring (GH22475) (#22816)
1 parent 64b88e8 commit 3ab9dbd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/core/generic.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -9512,6 +9512,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
95129512
path_or_buf : str or file handle, default None
95139513
File path or object, if None is provided the result is returned as
95149514
a string.
9515+
95159516
.. versionchanged:: 0.24.0
95169517
Was previously named "path" for Series.
95179518
sep : str, default ','
@@ -9525,6 +9526,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
95259526
header : bool or list of str, default True
95269527
Write out the column names. If a list of strings is given it is
95279528
assumed to be aliases for the column names.
9529+
95289530
.. versionchanged:: 0.24.0
95299531
Previously defaulted to False for Series.
95309532
index : bool, default True
@@ -9546,6 +9548,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
95469548
is path-like, then detect compression from the following
95479549
extensions: '.gz', '.bz2', '.zip' or '.xz'. (otherwise no
95489550
compression).
9551+
95499552
.. versionchanged:: 0.24.0
95509553
'infer' option added and set to default.
95519554
quoting : optional constant from csv module
@@ -9563,6 +9566,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
95639566
Write MultiIndex columns as a list of tuples (if True) or in
95649567
the new, expanded format, where each MultiIndex column is a row
95659568
in the CSV (if False).
9569+
95669570
.. deprecated:: 0.21.0
95679571
This argument will be removed and will always write each row
95689572
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,
95869590
See Also
95879591
--------
95889592
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.
95909594
95919595
Examples
95929596
--------

0 commit comments

Comments
 (0)