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
BUG: Patch handling of keep_default_na=False (#19260)
Patches very buggy behavior of keep_default_na=False
whenever na_values is a dict
* Respect keep_default_na for column that doesn't
exist in na_values dictionary
* Don't crash / break when na_value is a scalar in
the na_values dictionary.
In addition, clarifies documentation on behavior of
keep_default_na with respect to na_filter and na_values.
Closesgh-19227.
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.23.0.txt
+1
Original file line number
Diff line number
Diff line change
@@ -462,6 +462,7 @@ I/O
462
462
- :func:`read_html` now rewinds seekable IO objects after parse failure, before attempting to parse with a new parser. If a parser errors and the object is non-seekable, an informative error is raised suggesting the use of a different parser (:issue:`17975`)
463
463
- Bug in :func:`read_msgpack` with a non existent file is passed in Python 2 (:issue:`15296`)
464
464
- Bug in :func:`read_csv` where a ``MultiIndex`` with duplicate columns was not being mangled appropriately (:issue:`18062`)
465
+
- Bug in :func:`read_csv` where missing values were not being handled properly when ``keep_default_na=False`` with dictionary ``na_values`` (:issue:`19227`)
465
466
- Bug in :func:`read_sas` where a file with 0 variables gave an ``AttributeError`` incorrectly. Now it gives an ``EmptyDataError`` (:issue:`18184`)
466
467
- Bug in :func:`DataFrame.to_latex()` where pairs of braces meant to serve as invisible placeholders were escaped (:issue:`18667`)
467
468
- Bug in :func:`read_json` where large numeric values were causing an ``OverflowError`` (:issue:`18842`)
0 commit comments