@@ -586,6 +586,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
586
586
def to_json (
587
587
self ,
588
588
path_or_buf : FilePath | WriteBuffer [_str ] | WriteBuffer [bytes ],
589
+ * ,
589
590
orient : JsonSeriesOrient | None = ...,
590
591
date_format : Literal ["epoch" , "iso" ] | None = ...,
591
592
double_precision : int = ...,
@@ -602,6 +603,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
602
603
def to_json (
603
604
self ,
604
605
path_or_buf : None = ...,
606
+ * ,
605
607
orient : JsonSeriesOrient | None = ...,
606
608
date_format : Literal ["epoch" , "iso" ] | None = ...,
607
609
double_precision : int = ...,
@@ -941,6 +943,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
941
943
self ,
942
944
level : IndexLabel = ...,
943
945
fill_value : int | _str | dict | None = ...,
946
+ sort : _bool = ...,
944
947
) -> DataFrame : ...
945
948
@overload
946
949
def map (
@@ -1207,6 +1210,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1207
1210
figsize : tuple [float , float ] | None = ...,
1208
1211
bins : int | Sequence = ...,
1209
1212
backend : _str | None = ...,
1213
+ legend : _bool = ...,
1210
1214
** kwargs : Any ,
1211
1215
) -> SubplotBase : ...
1212
1216
@final
@@ -1217,7 +1221,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1217
1221
def droplevel (self , level : Level | list [Level ], axis : AxisIndex = ...) -> Self : ...
1218
1222
def pop (self , item : Hashable ) -> S1 : ...
1219
1223
@final
1220
- def squeeze (self ) -> Series [S1 ] | Scalar : ...
1224
+ def squeeze (self , axis : None = ... ) -> Series [S1 ] | Scalar : ...
1221
1225
@final
1222
1226
def __abs__ (self ) -> Series [S1 ]: ...
1223
1227
@final
@@ -1329,7 +1333,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1329
1333
@final
1330
1334
def copy (self , deep : _bool = ...) -> Series [S1 ]: ...
1331
1335
@final
1332
- def infer_objects (self ) -> Series [S1 ]: ...
1336
+ def infer_objects (self , copy : _bool = ... ) -> Series [S1 ]: ...
1333
1337
@overload
1334
1338
def ffill (
1335
1339
self ,
@@ -1969,7 +1973,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
1969
1973
self ,
1970
1974
axis : AxisIndex | None = ...,
1971
1975
skipna : _bool | None = ...,
1972
- level : None = ...,
1973
1976
numeric_only : _bool = ...,
1974
1977
min_count : int = ...,
1975
1978
** kwargs : Any ,
@@ -1978,7 +1981,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
1978
1981
self ,
1979
1982
axis : AxisIndex | None = ...,
1980
1983
skipna : _bool | None = ...,
1981
- level : None = ...,
1982
1984
numeric_only : _bool = ...,
1983
1985
min_count : int = ...,
1984
1986
** kwargs : Any ,
@@ -2078,7 +2080,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
2078
2080
self ,
2079
2081
axis : AxisIndex | None = ...,
2080
2082
skipna : _bool | None = ...,
2081
- level : None = ...,
2082
2083
ddof : int = ...,
2083
2084
numeric_only : _bool = ...,
2084
2085
** kwargs : Any ,
@@ -2087,15 +2088,13 @@ class Series(IndexOpsMixin[S1], NDFrame):
2087
2088
self ,
2088
2089
axis : AxisIndex | None = ...,
2089
2090
skipna : _bool | None = ...,
2090
- level : None = ...,
2091
2091
numeric_only : _bool = ...,
2092
2092
** kwargs : Any ,
2093
2093
) -> Scalar : ...
2094
2094
def std (
2095
2095
self ,
2096
2096
axis : AxisIndex | None = ...,
2097
2097
skipna : _bool | None = ...,
2098
- level : None = ...,
2099
2098
ddof : int = ...,
2100
2099
numeric_only : _bool = ...,
2101
2100
** kwargs : Any ,
@@ -2114,25 +2113,21 @@ class Series(IndexOpsMixin[S1], NDFrame):
2114
2113
fill_value : float | None = ...,
2115
2114
axis : AxisIndex | None = ...,
2116
2115
) -> Series [S1 ]: ...
2117
- # ignore needed because of mypy, for using `Never` as type-var.
2118
2116
@overload
2119
2117
def sum (
2120
2118
self : Series [Never ],
2121
2119
axis : AxisIndex | None = ...,
2122
2120
skipna : _bool | None = ...,
2123
- level : None = ...,
2124
2121
numeric_only : _bool = ...,
2125
2122
min_count : int = ...,
2126
2123
** kwargs : Any ,
2127
2124
) -> Any : ...
2128
- # ignore needed because of mypy, for overlapping overloads
2129
2125
# between `Series[bool]` and `Series[int]`.
2130
2126
@overload
2131
2127
def sum (
2132
2128
self : Series [bool ],
2133
2129
axis : AxisIndex | None = ...,
2134
2130
skipna : _bool | None = ...,
2135
- level : None = ...,
2136
2131
numeric_only : _bool = ...,
2137
2132
min_count : int = ...,
2138
2133
** kwargs : Any ,
@@ -2142,7 +2137,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
2142
2137
self : Series [S1 ],
2143
2138
axis : AxisIndex | None = ...,
2144
2139
skipna : _bool | None = ...,
2145
- level : None = ...,
2146
2140
numeric_only : _bool = ...,
2147
2141
min_count : int = ...,
2148
2142
** kwargs : Any ,
@@ -2168,7 +2162,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
2168
2162
self ,
2169
2163
axis : AxisIndex | None = ...,
2170
2164
skipna : _bool | None = ...,
2171
- level : None = ...,
2172
2165
ddof : int = ...,
2173
2166
numeric_only : _bool = ...,
2174
2167
** kwargs : Any ,
@@ -2263,7 +2256,6 @@ class TimestampSeries(Series[Timestamp]):
2263
2256
self ,
2264
2257
axis : AxisIndex | None = ...,
2265
2258
skipna : _bool | None = ...,
2266
- level : None = ...,
2267
2259
ddof : int = ...,
2268
2260
numeric_only : _bool = ...,
2269
2261
** kwargs : Any ,
0 commit comments