@@ -3,7 +3,6 @@ from collections.abc import (
3
3
Hashable ,
4
4
Iterable ,
5
5
Iterator ,
6
- Mapping ,
7
6
Sequence ,
8
7
)
9
8
import datetime as dt
@@ -74,24 +73,13 @@ from pandas._typing import (
74
73
75
74
from pandas .plotting import PlotAccessor
76
75
77
- _KeysArgType : TypeAlias = (
78
- Hashable
79
- | list [Hashable ]
80
- | Callable [[Hashable ], Hashable ]
81
- | list [Callable [[Hashable ], Hashable ]]
82
- | Mapping [Hashable , Hashable ]
83
- )
84
-
85
76
_ResamplerGroupBy : TypeAlias = (
86
77
DatetimeIndexResamplerGroupby [NDFrameT ]
87
78
| PeriodIndexResamplerGroupby [NDFrameT ]
88
79
| TimedeltaIndexResamplerGroupby [NDFrameT ]
89
80
)
90
81
91
82
class GroupBy (BaseGroupBy [NDFrameT ]):
92
- as_index : bool
93
- sort : bool
94
- observed : bool
95
83
def __getattr__ (self , attr : str ) -> Any : ...
96
84
def apply (self , func : Callable | str , * args , ** kwargs ) -> NDFrameT : ...
97
85
@final
@@ -355,10 +343,6 @@ class GroupByPlot(PlotAccessor, Generic[_GroupByT]):
355
343
# def __getattr__(self, name: str): ...
356
344
357
345
class BaseGroupBy (SelectionMixin [NDFrameT ], GroupByIndexingMixin ):
358
- axis : AxisInt
359
- keys : _KeysArgType | None
360
- level : IndexLabel | None
361
- group_keys : bool
362
346
@final
363
347
def __len__ (self ) -> int : ...
364
348
@final
0 commit comments