@@ -1926,11 +1926,17 @@ def to_dict(
1926
1926
self ,
1927
1927
orient : Literal ["dict" , "list" , "series" , "split" , "tight" , "index" ] = ...,
1928
1928
into : type [dict ] = ...,
1929
+ index : bool = ...,
1929
1930
) -> dict :
1930
1931
...
1931
1932
1932
1933
@overload
1933
- def to_dict (self , orient : Literal ["records" ], into : type [dict ] = ...) -> list [dict ]:
1934
+ def to_dict (
1935
+ self ,
1936
+ orient : Literal ["records" ],
1937
+ into : type [dict ] = ...,
1938
+ index : bool = ...,
1939
+ ) -> list [dict ]:
1934
1940
...
1935
1941
1936
1942
@deprecate_nonkeyword_arguments (
@@ -11297,7 +11303,7 @@ def _reduce_axis1(self, name: str, func, skipna: bool) -> Series:
11297
11303
def any ( # type: ignore[override]
11298
11304
self ,
11299
11305
* ,
11300
- axis : Axis = 0 ,
11306
+ axis : Axis | None = 0 ,
11301
11307
bool_only : bool = False ,
11302
11308
skipna : bool = True ,
11303
11309
** kwargs ,
@@ -11312,7 +11318,7 @@ def any( # type: ignore[override]
11312
11318
@doc (make_doc ("all" , ndim = 2 ))
11313
11319
def all (
11314
11320
self ,
11315
- axis : Axis = 0 ,
11321
+ axis : Axis | None = 0 ,
11316
11322
bool_only : bool = False ,
11317
11323
skipna : bool = True ,
11318
11324
** kwargs ,
@@ -11711,6 +11717,7 @@ def quantile(
11711
11717
axis : Axis = ...,
11712
11718
numeric_only : bool = ...,
11713
11719
interpolation : QuantileInterpolation = ...,
11720
+ method : Literal ["single" , "table" ] = ...,
11714
11721
) -> Series :
11715
11722
...
11716
11723
@@ -11721,6 +11728,7 @@ def quantile(
11721
11728
axis : Axis = ...,
11722
11729
numeric_only : bool = ...,
11723
11730
interpolation : QuantileInterpolation = ...,
11731
+ method : Literal ["single" , "table" ] = ...,
11724
11732
) -> Series | DataFrame :
11725
11733
...
11726
11734
@@ -11731,6 +11739,7 @@ def quantile(
11731
11739
axis : Axis = ...,
11732
11740
numeric_only : bool = ...,
11733
11741
interpolation : QuantileInterpolation = ...,
11742
+ method : Literal ["single" , "table" ] = ...,
11734
11743
) -> Series | DataFrame :
11735
11744
...
11736
11745
@@ -11830,11 +11839,10 @@ def quantile(
11830
11839
11831
11840
if not is_list_like (q ):
11832
11841
# BlockManager.quantile expects listlike, so we wrap and unwrap here
11833
- # error: List item 0 has incompatible type "Union[float, Union[Union[
11834
- # ExtensionArray, ndarray[Any, Any]], Index, Series], Sequence[float]]";
11835
- # expected "float"
11836
- res_df = self .quantile ( # type: ignore[call-overload]
11837
- [q ],
11842
+ # error: List item 0 has incompatible type "float | ExtensionArray |
11843
+ # ndarray[Any, Any] | Index | Series | Sequence[float]"; expected "float"
11844
+ res_df = self .quantile (
11845
+ [q ], # type: ignore[list-item]
11838
11846
axis = axis ,
11839
11847
numeric_only = numeric_only ,
11840
11848
interpolation = interpolation ,
0 commit comments