@@ -56,6 +56,7 @@ from pandas._typing import (
56
56
Axes ,
57
57
Axis ,
58
58
AxisType ,
59
+ CalculationMethod ,
59
60
ColspaceArgType ,
60
61
CompressionOptions ,
61
62
Dtype ,
@@ -91,6 +92,7 @@ from pandas._typing import (
91
92
StataDateFormat ,
92
93
StorageOptions ,
93
94
StrLike ,
95
+ Suffixes ,
94
96
T as TType ,
95
97
TimestampConvention ,
96
98
WriteBuffer ,
@@ -496,6 +498,9 @@ class DataFrame(NDFrame, OpsMixin):
496
498
| np_ndarray_bool
497
499
| Sequence [tuple [Scalar , ...]],
498
500
) -> DataFrame : ...
501
+ def isetitem (
502
+ self , loc : int | Sequence [int ], value : Scalar | ArrayLike | list [Any ]
503
+ ) -> None : ...
499
504
def __setitem__ (self , key , value ): ...
500
505
@overload
501
506
def query (self , expr : _str , * , inplace : Literal [True ], ** kwargs ) -> None : ...
@@ -741,6 +746,8 @@ class DataFrame(NDFrame, OpsMixin):
741
746
col_fill : Hashable = ...,
742
747
* ,
743
748
inplace : Literal [True ],
749
+ allow_duplicates : _bool = ...,
750
+ names : Hashable | list [HashableT ] = ...,
744
751
) -> None : ...
745
752
@overload
746
753
def reset_index (
@@ -751,6 +758,8 @@ class DataFrame(NDFrame, OpsMixin):
751
758
col_fill : Hashable = ...,
752
759
* ,
753
760
inplace : Literal [False ],
761
+ allow_duplicates : _bool = ...,
762
+ names : Hashable | list [HashableT ] = ...,
754
763
) -> DataFrame : ...
755
764
@overload
756
765
def reset_index (
@@ -760,6 +769,8 @@ class DataFrame(NDFrame, OpsMixin):
760
769
* ,
761
770
col_level : int | _str = ...,
762
771
col_fill : Hashable = ...,
772
+ allow_duplicates : _bool = ...,
773
+ names : Hashable | list [HashableT ] = ...,
763
774
) -> DataFrame : ...
764
775
@overload
765
776
def reset_index (
@@ -769,6 +780,8 @@ class DataFrame(NDFrame, OpsMixin):
769
780
inplace : _bool | None = ...,
770
781
col_level : int | _str = ...,
771
782
col_fill : Hashable = ...,
783
+ allow_duplicates : _bool = ...,
784
+ names : Hashable | list [HashableT ] = ...,
772
785
) -> DataFrame | None : ...
773
786
def isna (self ) -> DataFrame : ...
774
787
def isnull (self ) -> DataFrame : ...
@@ -957,6 +970,7 @@ class DataFrame(NDFrame, OpsMixin):
957
970
align_axis : Axis = ...,
958
971
keep_shape : bool = ...,
959
972
keep_equal : bool = ...,
973
+ result_names : Suffixes = ...,
960
974
) -> DataFrame : ...
961
975
def combine (
962
976
self ,
@@ -1086,6 +1100,17 @@ class DataFrame(NDFrame, OpsMixin):
1086
1100
lsuffix : _str = ...,
1087
1101
rsuffix : _str = ...,
1088
1102
sort : _bool = ...,
1103
+ validate : Literal [
1104
+ "one_to_one" ,
1105
+ "1:1" ,
1106
+ "one_to_many" ,
1107
+ "1:m" ,
1108
+ "many_to_one" ,
1109
+ "m:1" ,
1110
+ "many_to_many" ,
1111
+ "m:m" ,
1112
+ ]
1113
+ | None = ...,
1089
1114
) -> DataFrame : ...
1090
1115
def merge (
1091
1116
self ,
@@ -1163,6 +1188,7 @@ class DataFrame(NDFrame, OpsMixin):
1163
1188
axis : AxisType = ...,
1164
1189
numeric_only : _bool = ...,
1165
1190
interpolation : QuantileInterpolation = ...,
1191
+ method : CalculationMethod = ...,
1166
1192
) -> Series : ...
1167
1193
@overload
1168
1194
def quantile (
@@ -1171,6 +1197,7 @@ class DataFrame(NDFrame, OpsMixin):
1171
1197
axis : AxisType = ...,
1172
1198
numeric_only : _bool = ...,
1173
1199
interpolation : QuantileInterpolation = ...,
1200
+ method : CalculationMethod = ...,
1174
1201
) -> DataFrame : ...
1175
1202
def to_timestamp (
1176
1203
self ,
@@ -1716,13 +1743,14 @@ class DataFrame(NDFrame, OpsMixin):
1716
1743
label : _str | None = ...,
1717
1744
convention : TimestampConvention = ...,
1718
1745
kind : Literal ["timestamp" , "period" ] | None = ...,
1719
- loffset = ...,
1720
- base : int = ... ,
1746
+ # Not actually positional but needed due to deprecations
1747
+ * ,
1721
1748
on : _str | None = ...,
1722
1749
level : Level | None = ...,
1723
1750
origin : Timestamp
1724
1751
| Literal ["epoch" , "start" , "start_day" , "end" , "end_day" ] = ...,
1725
1752
offset : Timedelta | _str | None = ...,
1753
+ group_keys : _bool = ...,
1726
1754
) -> Resampler [DataFrame ]: ...
1727
1755
def rfloordiv (
1728
1756
self ,
0 commit comments