-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: is_float_dtype
meant to be an internal function??
#48101
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
pandas documents that accessing anything in Depending on your use case, this function may work for you https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.api.types.is_float.html |
API reference states that:
pandas.api.types.is_float is for checking a single object no the array-like objects. |
Ah yes thanks for the correction. Yes then https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.api.types.is_float_dtype.html is meant to be a public function. I guess since https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.api.types.is_int64_dtype.html is also public then |
Just for clarification: We can change this issue to an enhancement one and I'm pleased to take care of both the documentation and the new function. |
@mroeschke any updates on this? |
@MRyderOC Could you open a dedicated issue, if you think having a function |
Seems like there is no function for public API to check the dtype of an array-like object. Either the documentation needs to be changed or a public function should be provided and treat this one as an internal one by adding underscore at the beginning of it.
P.S. To keep the consistency between "int" and "float" dtype functions, it's better to add another function like
is_float64_dtype
and keep the current one and triage the documentation.pandas/pandas/core/dtypes/common.py
Line 1244 in e8093ba
The text was updated successfully, but these errors were encountered: