You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strip Trailing Whitespace From Dumped Pandas DataFrames
We recently upgraded from Pandas 1.1.5 to Pandas 1.4.3. In Pandas 1.2, a bug was fixed that prevented trailing
whitespaces from being added to the end of dumped ndjson output. See [here](pandas-dev/pandas#36898) for additional information.
This change uses `rstrip` on the dumped ndjson output so that all trailing whitespace is removed before this
data is dumped to stdout (or a destination file). Note that this trailing newline affected our assumptions
about the structure of NDJSON files and thus prevented files created after the upgrade from being parsed without
error.
0 commit comments