@@ -3759,7 +3759,7 @@ def from_csv(cls, path, sep=',', parse_dates=True, header=None,
3759
3759
3760
3760
def to_csv (self , path = None , index = True , sep = "," , na_rep = '' ,
3761
3761
float_format = None , header = False , index_label = None ,
3762
- mode = 'w' , encoding = None , compression = None , date_format = None ,
3762
+ mode = 'w' , encoding = None , compression = 'infer' , date_format = None ,
3763
3763
decimal = '.' ):
3764
3764
"""
3765
3765
Write Series to a comma-separated values (csv) file
@@ -3790,7 +3790,7 @@ def to_csv(self, path=None, index=True, sep=",", na_rep='',
3790
3790
compression : string, optional
3791
3791
A string representing the compression to use in the output file.
3792
3792
Allowed values are 'gzip', 'bz2', 'zip', 'xz'. This input is only
3793
- used when the first argument is a filename.
3793
+ used when the first argument is a filename. Defaults to 'infer'.
3794
3794
date_format: string, default None
3795
3795
Format string for datetime objects.
3796
3796
decimal: string, default '.'
0 commit comments