Skip to content

Commit a5898f8

Browse files
committed
BUG: Infer compression by default in read_fwf() (#22199)
1 parent 776fed3 commit a5898f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/parsers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def _read(filepath_or_buffer, kwds):
427427
encoding = re.sub('_', '-', encoding).lower()
428428
kwds['encoding'] = encoding
429429

430-
compression = kwds.get('compression')
430+
compression = kwds.get('compression', 'infer')
431431
compression = _infer_compression(filepath_or_buffer, compression)
432432
filepath_or_buffer, _, compression, should_close = get_filepath_or_buffer(
433433
filepath_or_buffer, encoding, compression)

0 commit comments

Comments
 (0)