File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -2521,14 +2521,24 @@ class Series(IndexOpsMixin[S1], NDFrame):
2521
2521
numeric_only : _bool = ...,
2522
2522
** kwargs : Any ,
2523
2523
) -> float : ...
2524
+ @overload
2524
2525
def median (
2525
- self ,
2526
+ self : Series [ float ] ,
2526
2527
axis : AxisIndex | None = ...,
2527
2528
skipna : _bool = ...,
2528
2529
level : None = ...,
2529
2530
numeric_only : _bool = ...,
2530
2531
** kwargs : Any ,
2531
- ) -> S1 : ...
2532
+ ) -> float : ...
2533
+ @overload
2534
+ def median (
2535
+ self : Series [Timestamp ],
2536
+ axis : AxisIndex | None = ...,
2537
+ skipna : _bool = ...,
2538
+ level : None = ...,
2539
+ numeric_only : _bool = ...,
2540
+ ** kwargs : Any ,
2541
+ ) -> Timestamp : ...
2532
2542
def min (
2533
2543
self ,
2534
2544
axis : AxisIndex | None = ...,
@@ -2907,7 +2917,7 @@ class TimedeltaSeries(Series[Timedelta]):
2907
2917
numeric_only : _bool = ...,
2908
2918
** kwargs : Any ,
2909
2919
) -> Timedelta : ...
2910
- def median (
2920
+ def median ( # mypy: ignore[override]
2911
2921
self ,
2912
2922
axis : AxisIndex | None = ...,
2913
2923
skipna : _bool = ...,
You can’t perform that action at this time.
0 commit comments