@@ -779,19 +779,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
779
779
errors : IgnoreRaise = ...,
780
780
) -> Self : ...
781
781
@overload
782
- def rename (
783
- self ,
784
- mapper : Renamer | None = ...,
785
- * ,
786
- index : Renamer | None = ...,
787
- columns : Renamer | None = ...,
788
- axis : Axis | None = ...,
789
- copy : bool = ...,
790
- inplace : bool = ...,
791
- level : Level | None = ...,
792
- errors : IgnoreRaise = ...,
793
- ) -> Self | None : ...
794
- @overload
795
782
def fillna (
796
783
self ,
797
784
value : Scalar | NAType | dict | Series | DataFrame | None = ...,
@@ -812,25 +799,15 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
812
799
inplace : Literal [False ] = ...,
813
800
) -> Self : ...
814
801
@overload
815
- def fillna (
816
- self ,
817
- value : Scalar | NAType | dict | Series | DataFrame | None = ...,
818
- * ,
819
- axis : Axis | None = ...,
820
- inplace : _bool | None = ...,
821
- limit : int = ...,
822
- downcast : dict | None = ...,
823
- ) -> Self | None : ...
824
- @overload
825
802
def replace (
826
803
self ,
827
804
to_replace = ...,
828
805
value : Scalar | NAType | Sequence | Mapping | Pattern | None = ...,
829
806
* ,
807
+ inplace : Literal [True ],
830
808
limit : int | None = ...,
831
809
regex = ...,
832
810
method : ReplaceMethod = ...,
833
- inplace : Literal [True ],
834
811
) -> None : ...
835
812
@overload
836
813
def replace (
@@ -843,17 +820,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
843
820
regex = ...,
844
821
method : ReplaceMethod = ...,
845
822
) -> Self : ...
846
- @overload
847
- def replace (
848
- self ,
849
- to_replace = ...,
850
- value : Scalar | NAType | Sequence | Mapping | Pattern | None = ...,
851
- * ,
852
- inplace : _bool | None = ...,
853
- limit : int | None = ...,
854
- regex = ...,
855
- method : ReplaceMethod = ...,
856
- ) -> Self | None : ...
857
823
def shift (
858
824
self ,
859
825
periods : int = ...,
@@ -919,18 +885,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
919
885
allow_duplicates : _bool = ...,
920
886
names : Hashable | Sequence [Hashable ] = ...,
921
887
) -> Self : ...
922
- @overload
923
- def reset_index (
924
- self ,
925
- level : Level | Sequence [Level ] = ...,
926
- * ,
927
- drop : _bool = ...,
928
- inplace : _bool | None = ...,
929
- col_level : int | _str = ...,
930
- col_fill : Hashable = ...,
931
- allow_duplicates : _bool = ...,
932
- names : Hashable | Sequence [Hashable ] = ...,
933
- ) -> Self | None : ...
934
888
def isna (self ) -> Self : ...
935
889
def isnull (self ) -> Self : ...
936
890
def notna (self ) -> Self : ...
@@ -958,17 +912,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
958
912
ignore_index : _bool = ...,
959
913
) -> Self : ...
960
914
@overload
961
- def dropna (
962
- self ,
963
- * ,
964
- axis : Axis = ...,
965
- how : Literal ["any" , "all" ] = ...,
966
- thresh : int | None = ...,
967
- subset : ListLikeU | Scalar | None = ...,
968
- inplace : _bool | None = ...,
969
- ignore_index : _bool = ...,
970
- ) -> Self | None : ...
971
- @overload
972
915
def drop_duplicates (
973
916
self ,
974
917
subset : Hashable | Iterable [Hashable ] | None = ...,
@@ -986,15 +929,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
986
929
inplace : Literal [False ] = ...,
987
930
ignore_index : _bool = ...,
988
931
) -> Self : ...
989
- @overload
990
- def drop_duplicates (
991
- self ,
992
- subset : Hashable | Iterable [Hashable ] | None = ...,
993
- * ,
994
- keep : NaPosition | _bool = ...,
995
- inplace : _bool = ...,
996
- ignore_index : _bool = ...,
997
- ) -> Self | None : ...
998
932
def duplicated (
999
933
self ,
1000
934
subset : Hashable | Iterable [Hashable ] | None = ...,
@@ -1027,19 +961,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
1027
961
key : Callable | None = ...,
1028
962
) -> Self : ...
1029
963
@overload
1030
- def sort_values (
1031
- self ,
1032
- by : _str | Sequence [_str ],
1033
- * ,
1034
- axis : Axis = ...,
1035
- ascending : _bool | Sequence [_bool ] = ...,
1036
- inplace : _bool | None = ...,
1037
- kind : SortKind = ...,
1038
- na_position : NaPosition = ...,
1039
- ignore_index : _bool = ...,
1040
- key : Callable | None = ...,
1041
- ) -> Self | None : ...
1042
- @overload
1043
964
def sort_index (
1044
965
self ,
1045
966
* ,
@@ -1068,20 +989,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
1068
989
key : Callable | None = ...,
1069
990
) -> Self : ...
1070
991
@overload
1071
- def sort_index (
1072
- self ,
1073
- * ,
1074
- axis : Axis = ...,
1075
- level : Level | list [int ] | list [_str ] | None = ...,
1076
- ascending : _bool | Sequence [_bool ] = ...,
1077
- inplace : _bool | None = ...,
1078
- kind : SortKind = ...,
1079
- na_position : NaPosition = ...,
1080
- sort_remaining : _bool = ...,
1081
- ignore_index : _bool = ...,
1082
- key : Callable | None = ...,
1083
- ) -> Self | None : ...
1084
- @overload
1085
992
def value_counts (
1086
993
self ,
1087
994
subset : Sequence [Hashable ] | None = ...,
@@ -1824,13 +1731,24 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
1824
1731
limit_area : Literal ["inside" , "outside" ] | None = ...,
1825
1732
downcast : dict | None = ...,
1826
1733
) -> Self : ...
1734
+ @overload
1827
1735
def clip (
1828
1736
self ,
1829
1737
lower : float | AnyArrayLike | None = ...,
1830
1738
upper : float | AnyArrayLike | None = ...,
1831
1739
* ,
1832
1740
axis : Axis | None = ...,
1833
- inplace : _bool = ...,
1741
+ inplace : Literal [True ],
1742
+ ** kwargs ,
1743
+ ) -> None : ...
1744
+ @overload
1745
+ def clip (
1746
+ self ,
1747
+ lower : float | AnyArrayLike | None = ...,
1748
+ upper : float | AnyArrayLike | None = ...,
1749
+ * ,
1750
+ axis : Axis | None = ...,
1751
+ inplace : Literal [False ] = ...,
1834
1752
** kwargs ,
1835
1753
) -> Self : ...
1836
1754
def copy (self , deep : _bool = ...) -> Self : ...
@@ -1963,19 +1881,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
1963
1881
inplace : Literal [False ] = ...,
1964
1882
** kwargs ,
1965
1883
) -> Self : ...
1966
- @overload
1967
- def interpolate (
1968
- self ,
1969
- method : InterpolateOptions = ...,
1970
- * ,
1971
- axis : Axis = ...,
1972
- limit : int | None = ...,
1973
- inplace : _bool | None = ...,
1974
- limit_direction : Literal ["forward" , "backward" , "both" ] = ...,
1975
- limit_area : Literal ["inside" , "outside" ] | None = ...,
1976
- downcast : Literal ["infer" ] | None = ...,
1977
- ** kwargs ,
1978
- ) -> Self | None : ...
1979
1884
def keys (self ) -> Index : ...
1980
1885
def kurt (
1981
1886
self ,
@@ -1997,6 +1902,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
1997
1902
def last_valid_index (self ) -> Scalar : ...
1998
1903
def le (self , other , axis : Axis = ..., level : Level | None = ...) -> Self : ...
1999
1904
def lt (self , other , axis : Axis = ..., level : Level | None = ...) -> Self : ...
1905
+ @overload
2000
1906
def mask (
2001
1907
self ,
2002
1908
cond : (
@@ -2008,7 +1914,23 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
2008
1914
),
2009
1915
other : Scalar | Series [S1 ] | DataFrame | Callable | NAType | None = ...,
2010
1916
* ,
2011
- inplace : _bool = ...,
1917
+ inplace : Literal [True ],
1918
+ axis : Axis | None = ...,
1919
+ level : Level | None = ...,
1920
+ ) -> None : ...
1921
+ @overload
1922
+ def mask (
1923
+ self ,
1924
+ cond : (
1925
+ Series
1926
+ | DataFrame
1927
+ | np .ndarray
1928
+ | Callable [[DataFrame ], DataFrame ]
1929
+ | Callable [[Any ], _bool ]
1930
+ ),
1931
+ other : Scalar | Series [S1 ] | DataFrame | Callable | NAType | None = ...,
1932
+ * ,
1933
+ inplace : Literal [False ] = ...,
2012
1934
axis : Axis | None = ...,
2013
1935
level : Level | None = ...,
2014
1936
) -> Self : ...
@@ -2470,6 +2392,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
2470
2392
numeric_only : _bool = ...,
2471
2393
** kwargs ,
2472
2394
) -> Series : ...
2395
+ @overload
2473
2396
def where (
2474
2397
self ,
2475
2398
cond : (
@@ -2481,7 +2404,23 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
2481
2404
),
2482
2405
other = ...,
2483
2406
* ,
2484
- inplace : _bool = ...,
2407
+ inplace : Literal [True ],
2408
+ axis : Axis | None = ...,
2409
+ level : Level | None = ...,
2410
+ ) -> None : ...
2411
+ @overload
2412
+ def where (
2413
+ self ,
2414
+ cond : (
2415
+ Series
2416
+ | DataFrame
2417
+ | np .ndarray
2418
+ | Callable [[DataFrame ], DataFrame ]
2419
+ | Callable [[Any ], _bool ]
2420
+ ),
2421
+ other = ...,
2422
+ * ,
2423
+ inplace : Literal [False ] = ...,
2485
2424
axis : Axis | None = ...,
2486
2425
level : Level | None = ...,
2487
2426
) -> Self : ...
0 commit comments