@@ -3,7 +3,6 @@ from collections.abc import (
33 Hashable ,
44 Iterable ,
55 Iterator ,
6- Mapping ,
76 Sequence ,
87)
98import datetime as dt
@@ -74,24 +73,13 @@ from pandas._typing import (
7473
7574from pandas .plotting import PlotAccessor
7675
77- _KeysArgType : TypeAlias = (
78- Hashable
79- | list [Hashable ]
80- | Callable [[Hashable ], Hashable ]
81- | list [Callable [[Hashable ], Hashable ]]
82- | Mapping [Hashable , Hashable ]
83- )
84-
8576_ResamplerGroupBy : TypeAlias = (
8677 DatetimeIndexResamplerGroupby [NDFrameT ]
8778 | PeriodIndexResamplerGroupby [NDFrameT ]
8879 | TimedeltaIndexResamplerGroupby [NDFrameT ]
8980)
9081
9182class GroupBy (BaseGroupBy [NDFrameT ]):
92- as_index : bool
93- sort : bool
94- observed : bool
9583 def __getattr__ (self , attr : str ) -> Any : ...
9684 def apply (self , func : Callable | str , * args , ** kwargs ) -> NDFrameT : ...
9785 @final
@@ -355,10 +343,6 @@ class GroupByPlot(PlotAccessor, Generic[_GroupByT]):
355343 # def __getattr__(self, name: str): ...
356344
357345class BaseGroupBy (SelectionMixin [NDFrameT ], GroupByIndexingMixin ):
358- axis : AxisInt
359- keys : _KeysArgType | None
360- level : IndexLabel | None
361- group_keys : bool
362346 @final
363347 def __len__ (self ) -> int : ...
364348 @final
0 commit comments