-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
API: scope of the public types module #16042
Comments
I think exposing |
I don't think its a bit deal to expose all (or almost all) of our introspection functions. |
* API: expose dtypes in pandas.api.types xref #16015 xref apache/arrow#585 xref #16042 xref #15541 (comment)
so we should finish documenting these I am not against leaving all of these. sure some are trivial but it does offer 1-stop shopping. |
yes, the fact that they were not yet documented was the reason I didn't add them yet in the other PR.
yes, in general OK as well.
|
ok I think ok then to remove (i'll depecate) some of these. |
Another unclear one (to me) is |
yeah is_sequence is also 'internal'. I'll remove it as well. |
* API: expose dtypes in pandas.api.types xref pandas-dev#16015 xref apache/arrow#585 xref pandas-dev#16042 xref pandas-dev#15541 (comment)
…i.types (pandas-dev#16163) * DEPR: deprecate is_any_int_dtype and is_floating_dtype from pandas.api.types closes pandas-dev#16042 * is_ docs
Currently, the public
pandas.api.types
modules holds the following functions:Two questions I would like to discuss a bit:
Putting the functions here, means keeping them stable. So we could also limit it to the more pandas specific ones. For example,
is_re
,is_dict_like
,is_iterator
, etc are general utility functions not actually related to pandas specifics. Of course it can be handy for other projects that they can use them instead of implementing it themselves, but it increases the number of functions we have to keep stable.- Do we need to expose more of the pandas extension types API? (xref #16099)From comment of @wesm (#15541 (comment)):
It is how the dtypes will be implemented in pandas 1.x, so shouldn't we just expose this officially and put it in
types
?pyarrow
uses the datetime tz one, and in #16015 we will probably also like to addCategoricalDtype
Not sure if the others (interval, period) are also needed.
The text was updated successfully, but these errors were encountered: