@@ -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
from typing import (
@@ -29,14 +28,11 @@ from typing_extensions import (
29
28
TypeAlias ,
30
29
)
31
30
32
- from pandas ._libs .lib import NoDefault
33
31
from pandas ._libs .tslibs .timestamps import Timestamp
34
32
from pandas ._typing import (
35
33
S1 ,
36
34
AggFuncTypeBase ,
37
35
AggFuncTypeFrame ,
38
- ArrayLike ,
39
- Axis ,
40
36
ByT ,
41
37
CorrelationMethod ,
42
38
Dtype ,
@@ -113,26 +109,13 @@ class SeriesGroupBy(GroupBy[Series[S1]], Generic[S1, ByT]):
113
109
bins : int | Sequence [int ] | None = ...,
114
110
dropna : bool = ...,
115
111
) -> Series [float ]: ...
116
- def fillna (
117
- self ,
118
- value : (
119
- Scalar | ArrayLike | Series | DataFrame | Mapping [Hashable , Scalar ] | None
120
- ) = ...,
121
- method : Literal ["bfill" , "ffill" ] | None = ...,
122
- axis : Axis | None | NoDefault = ...,
123
- inplace : bool = ...,
124
- limit : int | None = ...,
125
- downcast : dict | None | NoDefault = ...,
126
- ) -> Series [S1 ] | None : ...
127
112
def take (
128
113
self ,
129
114
indices : TakeIndexer ,
130
- axis : Axis | NoDefault = ...,
131
115
** kwargs ,
132
116
) -> Series [S1 ]: ...
133
117
def skew (
134
118
self ,
135
- axis : Axis | NoDefault = ...,
136
119
skipna : bool = ...,
137
120
numeric_only : bool = ...,
138
121
** kwargs ,
@@ -145,8 +128,8 @@ class SeriesGroupBy(GroupBy[Series[S1]], Generic[S1, ByT]):
145
128
def nsmallest (
146
129
self , n : int = ..., keep : Literal ["first" , "last" , "all" ] = ...
147
130
) -> Series [S1 ]: ...
148
- def idxmin (self , axis : Axis | NoDefault = ..., skipna : bool = ...) -> Series : ...
149
- def idxmax (self , axis : Axis | NoDefault = ..., skipna : bool = ...) -> Series : ...
131
+ def idxmin (self , skipna : bool = ...) -> Series : ...
132
+ def idxmax (self , skipna : bool = ...) -> Series : ...
150
133
def corr (
151
134
self ,
152
135
other : Series ,
@@ -242,13 +225,11 @@ class DataFrameGroupBy(GroupBy[DataFrame], Generic[ByT, _TT]):
242
225
def nunique (self , dropna : bool = ...) -> DataFrame : ...
243
226
def idxmax (
244
227
self ,
245
- axis : Axis | None | NoDefault = ...,
246
228
skipna : bool = ...,
247
229
numeric_only : bool = ...,
248
230
) -> DataFrame : ...
249
231
def idxmin (
250
232
self ,
251
- axis : Axis | None | NoDefault = ...,
252
233
skipna : bool = ...,
253
234
numeric_only : bool = ...,
254
235
) -> DataFrame : ...
@@ -336,13 +317,10 @@ class DataFrameGroupBy(GroupBy[DataFrame], Generic[ByT, _TT]):
336
317
ascending : bool = ...,
337
318
dropna : bool = ...,
338
319
) -> DataFrame : ...
339
- def take (
340
- self , indices : TakeIndexer , axis : Axis | None | NoDefault = ..., ** kwargs
341
- ) -> DataFrame : ...
320
+ def take (self , indices : TakeIndexer , ** kwargs ) -> DataFrame : ...
342
321
@overload
343
322
def skew (
344
323
self ,
345
- axis : Axis | None | NoDefault = ...,
346
324
skipna : bool = ...,
347
325
numeric_only : bool = ...,
348
326
* ,
@@ -352,7 +330,6 @@ class DataFrameGroupBy(GroupBy[DataFrame], Generic[ByT, _TT]):
352
330
@overload
353
331
def skew (
354
332
self ,
355
- axis : Axis | None | NoDefault = ...,
356
333
skipna : bool = ...,
357
334
numeric_only : bool = ...,
358
335
* ,
@@ -394,14 +371,6 @@ class DataFrameGroupBy(GroupBy[DataFrame], Generic[ByT, _TT]):
394
371
) -> Series : ... # Series[Axes] but this is not allowed
395
372
@property
396
373
def dtypes (self ) -> Series : ...
397
- def corrwith (
398
- self ,
399
- other : DataFrame | Series ,
400
- axis : Axis | NoDefault = ...,
401
- drop : bool = ...,
402
- method : CorrelationMethod = ...,
403
- numeric_only : bool = ...,
404
- ) -> DataFrame : ...
405
374
def __getattr__ (self , name : str ) -> SeriesGroupBy [Any , ByT ]: ...
406
375
# Overrides that provide more precise return types over the GroupBy class
407
376
@final # type: ignore[misc]
0 commit comments