Skip to content

Commit eadf68e

Browse files
committed
blank lines before .. versionchanged
Refs #22011 (comment) Blanks are needed before but not after or in between.
1 parent 918c0f8 commit eadf68e

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

doc/source/io.rst

-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,6 @@ compression : {``'infer'``, ``'gzip'``, ``'bz2'``, ``'zip'``, ``'xz'``, ``None``
299299

300300
.. versionadded:: 0.18.1 support for 'zip' and 'xz' compression.
301301
.. versionchanged:: 0.24.0 'infer' option added and set to default.
302-
303302
thousands : str, default ``None``
304303
Thousands separator.
305304
decimal : str, default ``'.'``

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1755,9 +1755,9 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
17551755
If 'infer' and `path_or_buf` is path-like, then detect compression
17561756
from the following extensions: '.gz', '.bz2', '.zip' or '.xz'
17571757
(otherwise no compression).
1758+
17581759
.. versionchanged:: 0.24.0
17591760
'infer' option added and set to default
1760-
17611761
line_terminator : string, default ``'\n'``
17621762
The newline character or character sequence to use in the output
17631763
file

pandas/core/generic.py

-2
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,6 @@ def to_json(self, path_or_buf=None, orient=None, date_format=None,
19991999
like.
20002000
20012001
.. versionadded:: 0.19.0
2002-
20032002
compression : {'infer', 'gzip', 'bz2', 'zip', 'xz', None},
20042003
default 'infer'
20052004
A string representing the compression to use in the output file,
@@ -2008,7 +2007,6 @@ def to_json(self, path_or_buf=None, orient=None, date_format=None,
20082007
.. versionadded:: 0.21.0
20092008
.. versionchanged:: 0.24.0
20102009
'infer' option added and set to default
2011-
20122010
index : boolean, default True
20132011
Whether to include the index values in the JSON string. Not
20142012
including the index (``index=False``) is only supported when

pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3799,9 +3799,9 @@ def to_csv(self, path=None, index=True, sep=",", na_rep='',
37993799
A string representing the compression to use in the output file.
38003800
Allowed values are None, 'gzip', 'bz2', 'zip', 'xz', and 'infer'.
38013801
This input is only used when the first argument is a filename.
3802+
38023803
.. versionchanged:: 0.24.0
38033804
'infer' option added and set to default
3804-
38053805
date_format: string, default None
38063806
Format string for datetime objects.
38073807
decimal: string, default '.'

0 commit comments

Comments
 (0)