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
1) Python infinity parsing bug
Initially an attempt to fix a Python parsing bug of
mixed-case infinity strings, the bug was traced back
via lib.maybe_convert_numeric to the 'floatify' method
in pandas/src/parse_helper.h.
In addition to correcting the bug and adding tests for
it, this commit also moves the infinity-parsing test
from CParser-only to common.
2) Interpret '+inf' as positive infinity
This is consistent with the Python API, where
float('+inf') is interpreted as positive infinity.
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.18.2.txt
+2
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,7 @@ Other enhancements
78
78
79
79
- ``Index.astype()`` now accepts an optional boolean argument ``copy``, which allows optional copying if the requirements on dtype are satisfied (:issue:`13209`)
80
80
- ``Categorical.astype()`` now accepts an optional boolean argument ``copy``, effective when dtype is categorical (:issue:`13209`)
81
+
- Consistent with the Python API, ``pd.read_csv`` will now interpret ``+inf`` as positive infinity (:issue:`13274`)
81
82
82
83
83
84
.. _whatsnew_0182.api:
@@ -257,3 +258,4 @@ Bug Fixes
257
258
258
259
259
260
- Bug in ``Categorical.remove_unused_categories()`` changes ``.codes`` dtype to platform int (:issue:`13261`)
261
+
- Bug in ``pd.read_csv`` for the Python engine in which infinities of mixed-case forms were not being interpreted properly (:issue:`13274`)
0 commit comments