-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Discrepancy between .is_numeric()
and is_numeric_dtype
for bool
Index
#51152
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
Comments
Hi, thanks for your report. I think the best suited function is not public right now. |
Not sure, guessing |
We would have to exclude complex as well, which would make the keyword name awkward I guess (or add 2, but not nice either). Having said that, is_any_numeric_dtype is not a great name either. We could rename to is_any_real_numeric_dtype before making it public? |
Hi I deprecate |
Ah thx, should have checked the git info. Reading through the discussion, I think Would you be interested in making a pr to rename and make public? |
Yes, i'm interested in doing it. But I am a novice in contribution. If I want to make function public, what should I do ? Writing test for |
And I think |
I prefer
|
take |
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
With the latest nightly wheel of
pandas
, the following deprecation message is givenHowever, when accounting for this deprecation over in
dask/dask
, we observed thatis_numeric()
andis_numeric_dtype
don't give the same result for andIndex
withbool
dataExpected Behavior
I'd expect these to both give the same answer
Installed Versions
The text was updated successfully, but these errors were encountered: