Skip to content

Commit

Permalink
Default compression='infer' in series.to_csv
Browse files Browse the repository at this point in the history
  • Loading branch information
dhimmel committed Jul 26, 2018
1 parent abd19e3 commit 2f670fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -3759,7 +3759,7 @@ def from_csv(cls, path, sep=',', parse_dates=True, header=None,

def to_csv(self, path=None, index=True, sep=",", na_rep='',
float_format=None, header=False, index_label=None,
mode='w', encoding=None, compression=None, date_format=None,
mode='w', encoding=None, compression='infer', date_format=None,
decimal='.'):
"""
Write Series to a comma-separated values (csv) file
Expand Down Expand Up @@ -3790,7 +3790,7 @@ def to_csv(self, path=None, index=True, sep=",", na_rep='',
compression : string, optional
A string representing the compression to use in the output file.
Allowed values are 'gzip', 'bz2', 'zip', 'xz'. This input is only
used when the first argument is a filename.
used when the first argument is a filename. Defaults to 'infer'.
date_format: string, default None
Format string for datetime objects.
decimal: string, default '.'
Expand Down

0 comments on commit 2f670fe

Please sign in to comment.