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