Skip to content

Commit

Permalink
BUG: Infer compression by default in read_fwf() (#22199)
Browse files Browse the repository at this point in the history
  • Loading branch information
NasaGeek committed Aug 5, 2018
1 parent 776fed3 commit a5898f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def _read(filepath_or_buffer, kwds):
encoding = re.sub('_', '-', encoding).lower()
kwds['encoding'] = encoding

compression = kwds.get('compression')
compression = kwds.get('compression', 'infer')
compression = _infer_compression(filepath_or_buffer, compression)
filepath_or_buffer, _, compression, should_close = get_filepath_or_buffer(
filepath_or_buffer, encoding, compression)
Expand Down

0 comments on commit a5898f8

Please sign in to comment.