-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Check for NaN after data conversion to numeric #13314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Check for NaN after data conversion to numeric #13314
Conversation
5a15c7f
to
9e17995
Compare
Current coverage is 84.22%@@ master #13314 diff @@
==========================================
Files 138 138
Lines 50667 50667
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 42672 42672
Misses 7995 7995
Partials 0 0
|
@@ -291,6 +291,7 @@ Bug Fixes | |||
|
|||
|
|||
|
|||
- Bug in ``pd.read_csv()`` with ``engine='python'`` in which NaN values weren't being detected after data was converted to numeric values (:issue:`13314`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double backticks around NaN
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
I suspect Can you run related perf tests just to see if any effect. |
No need I think: |
Ran perf tests on windows and didn't see any noticeable changes |
9e17995
to
07f0538
Compare
@jreback : Made the requested changes, and Travis is giving the green light. Ready to merge if there are no other concerns. |
In an attempt to squash a Python parser bug in which weirdly-formed floats weren't being checked for
nan
, the bug was traced back to a bug in themaybe_convert_numeric
function ofpandas/src/inference.pyx
. Added tests for the bug intest_lib.py
and adjusted the originalnan
tests inna_values.py
to test all of the engines.