forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve whitespace by default in read_fwf() by adding options:
* 'keep_whitespace' (default=True) * 'whitespace_chars' (default=[space] and [tab] chars) See: pandas-dev#49832 (comment) https://stackoverflow.com/questions/72235501/python-pandas-read-fwf-strips-white-space https://stackoverflow.com/questions/57012437/pandas-read-fwf-removes-white-space * changes in pandas/io/parsers/readers.py: _fwf_defaults() read_fwf() * pandas/io/parsers/python_parsers.py FixedWidthReader __init__ __next__ FixedWidthFieldParser __init__ _make_reader Signed-off-by: Ronald Barnes <ron@ronaldbarnes.ca>
- Loading branch information
1 parent
4ce3757
commit 997e2e9
Showing
2 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters