-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: maybe_convert_numeric fails with uint64 #14982
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
Labels
Comments
your two suggestions are fine
so unfortunately |
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Dec 28, 2016
Add handling for uint64 elements in an array with the follow behavior specifications: 1) If uint64 and NaN are both detected, the original input will be returned if coerce_numeric is False. Otherwise, an Exception is raised. 2) If uint64 and negative numbers are both detected, the origin input be returned if coerce_numeric is False. Otherwise, an Exception is raisd. Closes pandas-devgh-14982.
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Dec 28, 2016
Add handling for uint64 elements in an array with the follow behavior specifications: 1) If uint64 and NaN are both detected, the original input will be returned if coerce_numeric is False. Otherwise, an Exception is raised. 2) If uint64 and negative numbers are both detected, the original input be returned if coerce_numeric is False. Otherwise, an Exception is raised. Closes pandas-devgh-14982. Partial fix for pandas-devgh-14983.
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Dec 28, 2016
Add handling for uint64 elements in an array with the follow behavior specifications: 1) If uint64 and NaN are both detected, the original input will be returned if coerce_numeric is False. Otherwise, an Exception is raised. 2) If uint64 and negative numbers are both detected, the original input be returned if coerce_numeric is False. Otherwise, an Exception is raised. Closes pandas-devgh-14982. Partial fix for pandas-devgh-14983.
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Dec 29, 2016
Add handling for uint64 elements in an array with the follow behavior specifications: 1) If uint64 and NaN are both detected, the original input will be returned if coerce_numeric is False. Otherwise, an Exception is raised. 2) If uint64 and negative numbers are both detected, the original input be returned if coerce_numeric is False. Otherwise, an Exception is raised. Closes pandas-devgh-14982. Partial fix for pandas-devgh-14983.
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Dec 29, 2016
Add handling for uint64 elements in an array with the follow behavior specifications: 1) If uint64 and NaN are both detected, the original input will be returned if coerce_numeric is False. Otherwise, an Exception is raised. 2) If uint64 and negative numbers are both detected, the original input be returned if coerce_numeric is False. Otherwise, an Exception is raised. Closes pandas-devgh-14982. Partial fix for pandas-devgh-14983.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
master
at aba7d2:At first, I thought the patch would be similar to #14916, but there are several complications here:
uint64
values: inmaybe_convert_objects
, we would just returnobject
to avoid data truncation. However, this function currently only returns numeric arrays. And if we do decide to return non-numeric, should we then raise ifcoerce_numeric=True
then?uint64
has no convenientna_value
, so what happens if auint64
is inna_values
?The text was updated successfully, but these errors were encountered: