-
- Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Labels
API DesignEnhancementNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further action
Milestone
Description
Revision 2:
Currently many intermediate classes can only be found in pandas.core, for example DataFrameGroupBy and SeriesGroupBy. These classes should not be instantiated directly, but may be necessary to access for users who use type-hinting. I think we should add these classes to a new API submodule, pandas.api.aux as they are auxiliary classes. Users shouldn't need to know e.g. they are defined in pandas.core.groupby.generic.
Somewhat related: #6944, #19302
cc @pandas-dev/pandas-core @pandas-dev/pandas-triage for feedback.
Original
Currently one cannot run `from pandas import DataFrameGroupBy, SeriesGroupBy`. We should add these classes to the top level as they are particularly important for type-hinting in user code. Users shouldn't need to know they are defined in `pandas.core.groupby.generic`.Revision 1
Currently one cannot run `from pandas import DataFrameGroupBy, SeriesGroupBy`. We should add these classes to a new API submodule, `pandas.api.trying` as they are particularly important for type-hinting in user code. Users shouldn't need to know they are defined in `pandas.core.groupby.generic`.Metadata
Metadata
Assignees
Labels
API DesignEnhancementNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further action