We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
with 0.19.0.
In [28]: pd.to_numeric(pd.Series([1,2,3]), downcast='unsigned') Out[28]: 0 1 1 2 2 3 dtype: uint8 In [29]: pd.to_numeric(pd.Series([0,1,2,3]), downcast='unsigned') Out[29]: 0 0 1 1 2 2 3 3 dtype: int64
In [30]: np.iinfo(np.uint8).min Out[30]: 0
I think 0 is a legit uint8, so [29] should be uint8.
The text was updated successfully, but these errors were encountered:
cc @gfyoung
Sorry, something went wrong.
6ff53c2
reverted d1d75d7
b5864b0
BUG: to_numeric downcast = 'unsigned' would not un-sign a 0 value
53eb999
closes pandas-dev#14504 closes pandas-dev#14401 (cherry picked from commit b5864b0)
Successfully merging a pull request may close this issue.
with 0.19.0.
I think 0 is a legit uint8, so [29] should be uint8.
The text was updated successfully, but these errors were encountered: