@@ -1713,7 +1713,7 @@ def to_panel(self):
1713
1713
1714
1714
def to_csv (self , path_or_buf = None , sep = "," , na_rep = '' , float_format = None ,
1715
1715
columns = None , header = True , index = True , index_label = None ,
1716
- mode = 'w' , encoding = None , compression = None , quoting = None ,
1716
+ mode = 'w' , encoding = None , compression = 'infer' , quoting = None ,
1717
1717
quotechar = '"' , line_terminator = '\n ' , chunksize = None ,
1718
1718
tupleize_cols = None , date_format = None , doublequote = True ,
1719
1719
escapechar = None , decimal = '.' ):
@@ -1748,7 +1748,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
1748
1748
encoding : string, optional
1749
1749
A string representing the encoding to use in the output file,
1750
1750
defaults to 'ascii' on Python 2 and 'utf-8' on Python 3.
1751
- compression : {'infer', 'gzip', 'bz2', 'xz', None}, default None
1751
+ compression : {'infer', 'gzip', 'bz2', 'xz', None}, default infer
1752
1752
If 'infer' and `path_or_buf` is path-like, then detect compression
1753
1753
from the following extensions: '.gz', '.bz2' or '.xz'
1754
1754
(otherwise no compression).
0 commit comments