-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: Don't raise TypeError when converting NA from string to numeric #37268
BUG: Don't raise TypeError when converting NA from string to numeric #37268
Conversation
Thanks @dsaxton. It's probably fine to fix it like this in the short term, since a proper fix to actually refactor the |
That was my thinking, remove the error now then "enhance" to cast to nullable as a follow-up. I can open a separate issue for that if that makes sense? |
"values, expected", | ||
[ | ||
(["1", "2", None], Series([1, 2, np.nan])), | ||
(["1", "2", "3"], Series([1, 2, 3])), |
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.
can you add an example that has mixed values (e.g. '3' and 2 and 2.0 as well)
thanks @dsaxton very nice |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff