-
-
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
ENH: Support downcasting of nullable dtypes in to_numeric #33013
Comments
take |
Interestingly, this worked with pandas < version 1.0. I recently upgraded our existing code base from 0.2x to 1.1 and now the existing and unmodified code fails with exactly this error. So, this is a regression: Before 1.0:
After:
|
Note that it didn't fully work (but didn't raise an error, for sure), as the resulting type is not a nullable dtype anymore. And when missing values were present, no downcasting happened at all:
|
This currently does not yet work:
I suppose because under the hood a conversion to object dtype array is happening somewhere.
The text was updated successfully, but these errors were encountered: