Skip to content

Commit 78adc53

Browse files
mingglijreback
authored andcommitted
consistent docstring (#22066)
1 parent 017e910 commit 78adc53

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/core/frame.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1750,9 +1750,9 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
17501750
encoding : string, optional
17511751
A string representing the encoding to use in the output file,
17521752
defaults to 'ascii' on Python 2 and 'utf-8' on Python 3.
1753-
compression : {'infer', 'gzip', 'bz2', 'xz', None}, default None
1753+
compression : {'infer', 'gzip', 'bz2', 'zip', 'xz', None}, default None
17541754
If 'infer' and `path_or_buf` is path-like, then detect compression
1755-
from the following extensions: '.gz', '.bz2' or '.xz'
1755+
from the following extensions: '.gz', '.bz2', '.zip' or '.xz'
17561756
(otherwise no compression).
17571757
line_terminator : string, default ``'\n'``
17581758
The newline character or character sequence to use in the output

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,7 @@ def to_json(self, path_or_buf=None, orient=None, date_format=None,
19991999
20002000
.. versionadded:: 0.19.0
20012001
2002-
compression : {'infer', 'gzip', 'bz2', 'xz', None}, default None
2002+
compression : {'infer', 'gzip', 'bz2', 'zip', 'xz', None}, default None
20032003
A string representing the compression to use in the output file,
20042004
only used when the first argument is a filename.
20052005

0 commit comments

Comments
 (0)