@@ -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 (
@@ -1132,6 +1135,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1132
1135
freq : DateOffset | timedelta | _str | None = ...,
1133
1136
axis : Axis = ...,
1134
1137
fill_value : Scalar | NAType | None = ...,
1138
+ suffix : _str | None = ..., # has no effect at the moment
1135
1139
) -> Series : ...
1136
1140
def info (
1137
1141
self ,
@@ -1207,6 +1211,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1207
1211
figsize : tuple [float , float ] | None = ...,
1208
1212
bins : int | Sequence = ...,
1209
1213
backend : _str | None = ...,
1214
+ legend : _bool = ...,
1210
1215
** kwargs : Any ,
1211
1216
) -> SubplotBase : ...
1212
1217
@final
@@ -1217,7 +1222,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1217
1222
def droplevel (self , level : Level | list [Level ], axis : AxisIndex = ...) -> Self : ...
1218
1223
def pop (self , item : Hashable ) -> S1 : ...
1219
1224
@final
1220
- def squeeze (self ) -> Series [S1 ] | Scalar : ...
1225
+ def squeeze (self , axis : Axis = ... ) -> Series [S1 ] | Scalar : ...
1221
1226
@final
1222
1227
def __abs__ (self ) -> Series [S1 ]: ...
1223
1228
@final
@@ -1329,7 +1334,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1329
1334
@final
1330
1335
def copy (self , deep : _bool = ...) -> Series [S1 ]: ...
1331
1336
@final
1332
- def infer_objects (self ) -> Series [S1 ]: ...
1337
+ def infer_objects (self , copy : _bool = ... ) -> Series [S1 ]: ...
1333
1338
@overload
1334
1339
def ffill (
1335
1340
self ,
@@ -1579,6 +1584,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
1579
1584
periods : int = ...,
1580
1585
fill_method : None = ...,
1581
1586
freq : DateOffset | timedelta | _str | None = ...,
1587
+ limit : int | None = ..., # deprecated since 2.1
1582
1588
* ,
1583
1589
fill_value : Scalar | NAType | None = ...,
1584
1590
) -> Series [float ]: ...
@@ -1969,7 +1975,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
1969
1975
self ,
1970
1976
axis : AxisIndex | None = ...,
1971
1977
skipna : _bool | None = ...,
1972
- level : None = ...,
1973
1978
numeric_only : _bool = ...,
1974
1979
min_count : int = ...,
1975
1980
** kwargs : Any ,
@@ -1978,7 +1983,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
1978
1983
self ,
1979
1984
axis : AxisIndex | None = ...,
1980
1985
skipna : _bool | None = ...,
1981
- level : None = ...,
1982
1986
numeric_only : _bool = ...,
1983
1987
min_count : int = ...,
1984
1988
** kwargs : Any ,
@@ -2078,7 +2082,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
2078
2082
self ,
2079
2083
axis : AxisIndex | None = ...,
2080
2084
skipna : _bool | None = ...,
2081
- level : None = ...,
2082
2085
ddof : int = ...,
2083
2086
numeric_only : _bool = ...,
2084
2087
** kwargs : Any ,
@@ -2087,15 +2090,13 @@ class Series(IndexOpsMixin[S1], NDFrame):
2087
2090
self ,
2088
2091
axis : AxisIndex | None = ...,
2089
2092
skipna : _bool | None = ...,
2090
- level : None = ...,
2091
2093
numeric_only : _bool = ...,
2092
2094
** kwargs : Any ,
2093
2095
) -> Scalar : ...
2094
2096
def std (
2095
2097
self ,
2096
2098
axis : AxisIndex | None = ...,
2097
2099
skipna : _bool | None = ...,
2098
- level : None = ...,
2099
2100
ddof : int = ...,
2100
2101
numeric_only : _bool = ...,
2101
2102
** kwargs : Any ,
@@ -2114,25 +2115,21 @@ class Series(IndexOpsMixin[S1], NDFrame):
2114
2115
fill_value : float | None = ...,
2115
2116
axis : AxisIndex | None = ...,
2116
2117
) -> Series [S1 ]: ...
2117
- # ignore needed because of mypy, for using `Never` as type-var.
2118
2118
@overload
2119
2119
def sum (
2120
2120
self : Series [Never ],
2121
2121
axis : AxisIndex | None = ...,
2122
2122
skipna : _bool | None = ...,
2123
- level : None = ...,
2124
2123
numeric_only : _bool = ...,
2125
2124
min_count : int = ...,
2126
2125
** kwargs : Any ,
2127
2126
) -> Any : ...
2128
- # ignore needed because of mypy, for overlapping overloads
2129
2127
# between `Series[bool]` and `Series[int]`.
2130
2128
@overload
2131
2129
def sum (
2132
2130
self : Series [bool ],
2133
2131
axis : AxisIndex | None = ...,
2134
2132
skipna : _bool | None = ...,
2135
- level : None = ...,
2136
2133
numeric_only : _bool = ...,
2137
2134
min_count : int = ...,
2138
2135
** kwargs : Any ,
@@ -2142,7 +2139,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
2142
2139
self : Series [S1 ],
2143
2140
axis : AxisIndex | None = ...,
2144
2141
skipna : _bool | None = ...,
2145
- level : None = ...,
2146
2142
numeric_only : _bool = ...,
2147
2143
min_count : int = ...,
2148
2144
** kwargs : Any ,
@@ -2168,7 +2164,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
2168
2164
self ,
2169
2165
axis : AxisIndex | None = ...,
2170
2166
skipna : _bool | None = ...,
2171
- level : None = ...,
2172
2167
ddof : int = ...,
2173
2168
numeric_only : _bool = ...,
2174
2169
** kwargs : Any ,
@@ -2263,7 +2258,6 @@ class TimestampSeries(Series[Timestamp]):
2263
2258
self ,
2264
2259
axis : AxisIndex | None = ...,
2265
2260
skipna : _bool | None = ...,
2266
- level : None = ...,
2267
2261
ddof : int = ...,
2268
2262
numeric_only : _bool = ...,
2269
2263
** kwargs : Any ,
0 commit comments