@@ -3759,7 +3759,7 @@ def from_csv(cls, path, sep=',', parse_dates=True, header=None,
37593759
37603760 def to_csv (self , path = None , index = True , sep = "," , na_rep = '' ,
37613761 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 ,
37633763 decimal = '.' ):
37643764 """
37653765 Write Series to a comma-separated values (csv) file
@@ -3790,7 +3790,7 @@ def to_csv(self, path=None, index=True, sep=",", na_rep='',
37903790 compression : string, optional
37913791 A string representing the compression to use in the output file.
37923792 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'.
37943794 date_format: string, default None
37953795 Format string for datetime objects.
37963796 decimal: string, default '.'
0 commit comments