Skip to content

Commit cfd0715

Browse files
committed
remove descriptinos zip only supported by Python3
1 parent ab7a7b7 commit cfd0715

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

pandas/core/frame.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,9 +1655,8 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
16551655
defaults to 'ascii' on Python 2 and 'utf-8' on Python 3.
16561656
compression : string, optional
16571657
a string representing the compression to use in the output file,
1658-
allowed values are 'gzip', 'bz2', 'zip', 'xz', 'zip' only
1659-
supported with Python>=3.0, only used when the first argument is a
1660-
filename.
1658+
allowed values are 'gzip', 'bz2', 'zip', 'xz', only used when the
1659+
first argument is a filename.
16611660
line_terminator : string, default ``'\n'``
16621661
The newline character or character sequence to use in the output
16631662
file

pandas/core/generic.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,8 +1816,7 @@ def to_json(self, path_or_buf=None, orient=None, date_format=None,
18161816
18171817
compression : {None, 'gzip', 'bz2', 'zip', 'xz'}
18181818
A string representing the compression to use in the output file,
1819-
'zip' only supported with Python>=3.0, only used when the first
1820-
argument is a filename.
1819+
only used when the first argument is a filename.
18211820
18221821
.. versionadded:: 0.21.0
18231822
@@ -2089,8 +2088,7 @@ def to_pickle(self, path, compression='infer',
20892088
compression : {'infer', 'gzip', 'bz2', 'zip', 'xz', None}, \
20902089
default 'infer'
20912090
A string representing the compression to use in the output file. By
2092-
default, infers from the file extension in specified path. 'zip'
2093-
only supported with Python>=3.0
2091+
default, infers from the file extension in specified path.
20942092
20952093
.. versionadded:: 0.20.0
20962094
protocol : int

pandas/io/pickle.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ def to_pickle(obj, path, compression='infer', protocol=pkl.HIGHEST_PROTOCOL):
2020
File path where the pickled object will be stored.
2121
compression : {'infer', 'gzip', 'bz2', 'zip', 'xz', None}, default 'infer'
2222
A string representing the compression to use in the output file. By
23-
default, infers from the file extension in specified path. 'zip' only
24-
supported with Python>=3.0
23+
default, infers from the file extension in specified path.
2524
2625
.. versionadded:: 0.20.0
2726
protocol : int

0 commit comments

Comments
 (0)