@@ -586,6 +586,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
586586 def to_json (
587587 self ,
588588 path_or_buf : FilePath | WriteBuffer [_str ] | WriteBuffer [bytes ],
589+ * ,
589590 orient : JsonSeriesOrient | None = ...,
590591 date_format : Literal ["epoch" , "iso" ] | None = ...,
591592 double_precision : int = ...,
@@ -602,6 +603,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
602603 def to_json (
603604 self ,
604605 path_or_buf : None = ...,
606+ * ,
605607 orient : JsonSeriesOrient | None = ...,
606608 date_format : Literal ["epoch" , "iso" ] | None = ...,
607609 double_precision : int = ...,
@@ -941,6 +943,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
941943 self ,
942944 level : IndexLabel = ...,
943945 fill_value : int | _str | dict | None = ...,
946+ sort : _bool = ...,
944947 ) -> DataFrame : ...
945948 @overload
946949 def map (
@@ -1207,6 +1210,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
12071210 figsize : tuple [float , float ] | None = ...,
12081211 bins : int | Sequence = ...,
12091212 backend : _str | None = ...,
1213+ legend : _bool = ...,
12101214 ** kwargs : Any ,
12111215 ) -> SubplotBase : ...
12121216 @final
@@ -1217,7 +1221,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
12171221 def droplevel (self , level : Level | list [Level ], axis : AxisIndex = ...) -> Self : ...
12181222 def pop (self , item : Hashable ) -> S1 : ...
12191223 @final
1220- def squeeze (self ) -> Series [S1 ] | Scalar : ...
1224+ def squeeze (self , axis : None = ... ) -> Series [S1 ] | Scalar : ...
12211225 @final
12221226 def __abs__ (self ) -> Series [S1 ]: ...
12231227 @final
@@ -1329,7 +1333,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
13291333 @final
13301334 def copy (self , deep : _bool = ...) -> Series [S1 ]: ...
13311335 @final
1332- def infer_objects (self ) -> Series [S1 ]: ...
1336+ def infer_objects (self , copy : _bool = ... ) -> Series [S1 ]: ...
13331337 @overload
13341338 def ffill (
13351339 self ,
@@ -1969,7 +1973,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
19691973 self ,
19701974 axis : AxisIndex | None = ...,
19711975 skipna : _bool | None = ...,
1972- level : None = ...,
19731976 numeric_only : _bool = ...,
19741977 min_count : int = ...,
19751978 ** kwargs : Any ,
@@ -1978,7 +1981,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
19781981 self ,
19791982 axis : AxisIndex | None = ...,
19801983 skipna : _bool | None = ...,
1981- level : None = ...,
19821984 numeric_only : _bool = ...,
19831985 min_count : int = ...,
19841986 ** kwargs : Any ,
@@ -2078,7 +2080,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
20782080 self ,
20792081 axis : AxisIndex | None = ...,
20802082 skipna : _bool | None = ...,
2081- level : None = ...,
20822083 ddof : int = ...,
20832084 numeric_only : _bool = ...,
20842085 ** kwargs : Any ,
@@ -2087,15 +2088,13 @@ class Series(IndexOpsMixin[S1], NDFrame):
20872088 self ,
20882089 axis : AxisIndex | None = ...,
20892090 skipna : _bool | None = ...,
2090- level : None = ...,
20912091 numeric_only : _bool = ...,
20922092 ** kwargs : Any ,
20932093 ) -> Scalar : ...
20942094 def std (
20952095 self ,
20962096 axis : AxisIndex | None = ...,
20972097 skipna : _bool | None = ...,
2098- level : None = ...,
20992098 ddof : int = ...,
21002099 numeric_only : _bool = ...,
21012100 ** kwargs : Any ,
@@ -2114,25 +2113,21 @@ class Series(IndexOpsMixin[S1], NDFrame):
21142113 fill_value : float | None = ...,
21152114 axis : AxisIndex | None = ...,
21162115 ) -> Series [S1 ]: ...
2117- # ignore needed because of mypy, for using `Never` as type-var.
21182116 @overload
21192117 def sum (
21202118 self : Series [Never ],
21212119 axis : AxisIndex | None = ...,
21222120 skipna : _bool | None = ...,
2123- level : None = ...,
21242121 numeric_only : _bool = ...,
21252122 min_count : int = ...,
21262123 ** kwargs : Any ,
21272124 ) -> Any : ...
2128- # ignore needed because of mypy, for overlapping overloads
21292125 # between `Series[bool]` and `Series[int]`.
21302126 @overload
21312127 def sum (
21322128 self : Series [bool ],
21332129 axis : AxisIndex | None = ...,
21342130 skipna : _bool | None = ...,
2135- level : None = ...,
21362131 numeric_only : _bool = ...,
21372132 min_count : int = ...,
21382133 ** kwargs : Any ,
@@ -2142,7 +2137,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
21422137 self : Series [S1 ],
21432138 axis : AxisIndex | None = ...,
21442139 skipna : _bool | None = ...,
2145- level : None = ...,
21462140 numeric_only : _bool = ...,
21472141 min_count : int = ...,
21482142 ** kwargs : Any ,
@@ -2168,7 +2162,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
21682162 self ,
21692163 axis : AxisIndex | None = ...,
21702164 skipna : _bool | None = ...,
2171- level : None = ...,
21722165 ddof : int = ...,
21732166 numeric_only : _bool = ...,
21742167 ** kwargs : Any ,
@@ -2263,7 +2256,6 @@ class TimestampSeries(Series[Timestamp]):
22632256 self ,
22642257 axis : AxisIndex | None = ...,
22652258 skipna : _bool | None = ...,
2266- level : None = ...,
22672259 ddof : int = ...,
22682260 numeric_only : _bool = ...,
22692261 ** kwargs : Any ,
0 commit comments