@@ -760,19 +760,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
760
760
errors : IgnoreRaise = ...,
761
761
) -> Self : ...
762
762
@overload
763
- def rename (
764
- self ,
765
- mapper : Renamer | None = ...,
766
- * ,
767
- index : Renamer | None = ...,
768
- columns : Renamer | None = ...,
769
- axis : Axis | None = ...,
770
- copy : bool = ...,
771
- inplace : bool = ...,
772
- level : Level | None = ...,
773
- errors : IgnoreRaise = ...,
774
- ) -> Self | None : ...
775
- @overload
776
763
def fillna (
777
764
self ,
778
765
value : Scalar | NAType | dict | Series | DataFrame | None = ...,
@@ -793,25 +780,15 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
793
780
inplace : Literal [False ] = ...,
794
781
) -> Self : ...
795
782
@overload
796
- def fillna (
797
- self ,
798
- value : Scalar | NAType | dict | Series | DataFrame | None = ...,
799
- * ,
800
- axis : Axis | None = ...,
801
- inplace : _bool | None = ...,
802
- limit : int = ...,
803
- downcast : dict | None = ...,
804
- ) -> Self | None : ...
805
- @overload
806
783
def replace (
807
784
self ,
808
785
to_replace = ...,
809
786
value : Scalar | NAType | Sequence | Mapping | Pattern | None = ...,
810
787
* ,
788
+ inplace : Literal [True ],
811
789
limit : int | None = ...,
812
790
regex = ...,
813
791
method : ReplaceMethod = ...,
814
- inplace : Literal [True ],
815
792
) -> None : ...
816
793
@overload
817
794
def replace (
@@ -824,17 +801,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
824
801
regex = ...,
825
802
method : ReplaceMethod = ...,
826
803
) -> Self : ...
827
- @overload
828
- def replace (
829
- self ,
830
- to_replace = ...,
831
- value : Scalar | NAType | Sequence | Mapping | Pattern | None = ...,
832
- * ,
833
- inplace : _bool | None = ...,
834
- limit : int | None = ...,
835
- regex = ...,
836
- method : ReplaceMethod = ...,
837
- ) -> Self | None : ...
838
804
def shift (
839
805
self ,
840
806
periods : int = ...,
@@ -890,18 +856,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
890
856
allow_duplicates : _bool = ...,
891
857
names : Hashable | list [HashableT ] = ...,
892
858
) -> Self : ...
893
- @overload
894
- def reset_index (
895
- self ,
896
- level : Level | Sequence [Level ] = ...,
897
- * ,
898
- drop : _bool = ...,
899
- inplace : _bool | None = ...,
900
- col_level : int | _str = ...,
901
- col_fill : Hashable = ...,
902
- allow_duplicates : _bool = ...,
903
- names : Hashable | list [HashableT ] = ...,
904
- ) -> Self | None : ...
905
859
def isna (self ) -> Self : ...
906
860
def isnull (self ) -> Self : ...
907
861
def notna (self ) -> Self : ...
@@ -929,17 +883,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
929
883
ignore_index : _bool = ...,
930
884
) -> Self : ...
931
885
@overload
932
- def dropna (
933
- self ,
934
- * ,
935
- axis : Axis = ...,
936
- how : Literal ["any" , "all" ] = ...,
937
- thresh : int | None = ...,
938
- subset : ListLikeU | Scalar | None = ...,
939
- inplace : _bool | None = ...,
940
- ignore_index : _bool = ...,
941
- ) -> Self | None : ...
942
- @overload
943
886
def drop_duplicates (
944
887
self ,
945
888
subset : Hashable | Iterable [Hashable ] | None = ...,
@@ -957,15 +900,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
957
900
inplace : Literal [False ] = ...,
958
901
ignore_index : _bool = ...,
959
902
) -> Self : ...
960
- @overload
961
- def drop_duplicates (
962
- self ,
963
- subset : Hashable | Iterable [Hashable ] | None = ...,
964
- * ,
965
- keep : NaPosition | _bool = ...,
966
- inplace : _bool = ...,
967
- ignore_index : _bool = ...,
968
- ) -> Self | None : ...
969
903
def duplicated (
970
904
self ,
971
905
subset : Hashable | Iterable [Hashable ] | None = ...,
@@ -998,19 +932,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
998
932
key : Callable | None = ...,
999
933
) -> Self : ...
1000
934
@overload
1001
- def sort_values (
1002
- self ,
1003
- by : _str | Sequence [_str ],
1004
- * ,
1005
- axis : Axis = ...,
1006
- ascending : _bool | Sequence [_bool ] = ...,
1007
- inplace : _bool | None = ...,
1008
- kind : SortKind = ...,
1009
- na_position : NaPosition = ...,
1010
- ignore_index : _bool = ...,
1011
- key : Callable | None = ...,
1012
- ) -> Self | None : ...
1013
- @overload
1014
935
def sort_index (
1015
936
self ,
1016
937
* ,
@@ -1039,20 +960,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
1039
960
key : Callable | None = ...,
1040
961
) -> Self : ...
1041
962
@overload
1042
- def sort_index (
1043
- self ,
1044
- * ,
1045
- axis : Axis = ...,
1046
- level : Level | list [int ] | list [_str ] | None = ...,
1047
- ascending : _bool | Sequence [_bool ] = ...,
1048
- inplace : _bool | None = ...,
1049
- kind : SortKind = ...,
1050
- na_position : NaPosition = ...,
1051
- sort_remaining : _bool = ...,
1052
- ignore_index : _bool = ...,
1053
- key : Callable | None = ...,
1054
- ) -> Self | None : ...
1055
- @overload
1056
963
def value_counts (
1057
964
self ,
1058
965
subset : Sequence [Hashable ] | None = ...,
@@ -1795,13 +1702,24 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
1795
1702
limit_area : Literal ["inside" , "outside" ] | None = ...,
1796
1703
downcast : dict | None = ...,
1797
1704
) -> Self : ...
1705
+ @overload
1798
1706
def clip (
1799
1707
self ,
1800
1708
lower : float | AnyArrayLike | None = ...,
1801
1709
upper : float | AnyArrayLike | None = ...,
1802
1710
* ,
1803
1711
axis : Axis | None = ...,
1804
- inplace : _bool = ...,
1712
+ inplace : Literal [True ],
1713
+ ** kwargs ,
1714
+ ) -> None : ...
1715
+ @overload
1716
+ def clip (
1717
+ self ,
1718
+ lower : float | AnyArrayLike | None = ...,
1719
+ upper : float | AnyArrayLike | None = ...,
1720
+ * ,
1721
+ axis : Axis | None = ...,
1722
+ inplace : Literal [False ] = ...,
1805
1723
** kwargs ,
1806
1724
) -> Self : ...
1807
1725
def copy (self , deep : _bool = ...) -> Self : ...
@@ -1934,19 +1852,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
1934
1852
inplace : Literal [False ] = ...,
1935
1853
** kwargs ,
1936
1854
) -> Self : ...
1937
- @overload
1938
- def interpolate (
1939
- self ,
1940
- method : InterpolateOptions = ...,
1941
- * ,
1942
- axis : Axis = ...,
1943
- limit : int | None = ...,
1944
- inplace : _bool | None = ...,
1945
- limit_direction : Literal ["forward" , "backward" , "both" ] = ...,
1946
- limit_area : Literal ["inside" , "outside" ] | None = ...,
1947
- downcast : Literal ["infer" ] | None = ...,
1948
- ** kwargs ,
1949
- ) -> Self | None : ...
1950
1855
def keys (self ) -> Index : ...
1951
1856
def kurt (
1952
1857
self ,
@@ -1968,6 +1873,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
1968
1873
def last_valid_index (self ) -> Scalar : ...
1969
1874
def le (self , other , axis : Axis = ..., level : Level | None = ...) -> Self : ...
1970
1875
def lt (self , other , axis : Axis = ..., level : Level | None = ...) -> Self : ...
1876
+ @overload
1971
1877
def mask (
1972
1878
self ,
1973
1879
cond : (
@@ -1979,7 +1885,23 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
1979
1885
),
1980
1886
other : Scalar | Series [S1 ] | DataFrame | Callable | NAType | None = ...,
1981
1887
* ,
1982
- inplace : _bool = ...,
1888
+ inplace : Literal [True ],
1889
+ axis : Axis | None = ...,
1890
+ level : Level | None = ...,
1891
+ ) -> None : ...
1892
+ @overload
1893
+ def mask (
1894
+ self ,
1895
+ cond : (
1896
+ Series
1897
+ | DataFrame
1898
+ | np .ndarray
1899
+ | Callable [[DataFrame ], DataFrame ]
1900
+ | Callable [[Any ], _bool ]
1901
+ ),
1902
+ other : Scalar | Series [S1 ] | DataFrame | Callable | NAType | None = ...,
1903
+ * ,
1904
+ inplace : Literal [False ] = ...,
1983
1905
axis : Axis | None = ...,
1984
1906
level : Level | None = ...,
1985
1907
) -> Self : ...
@@ -2441,6 +2363,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
2441
2363
numeric_only : _bool = ...,
2442
2364
** kwargs ,
2443
2365
) -> Series : ...
2366
+ @overload
2444
2367
def where (
2445
2368
self ,
2446
2369
cond : (
@@ -2452,7 +2375,23 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
2452
2375
),
2453
2376
other = ...,
2454
2377
* ,
2455
- inplace : _bool = ...,
2378
+ inplace : Literal [True ],
2379
+ axis : Axis | None = ...,
2380
+ level : Level | None = ...,
2381
+ ) -> None : ...
2382
+ @overload
2383
+ def where (
2384
+ self ,
2385
+ cond : (
2386
+ Series
2387
+ | DataFrame
2388
+ | np .ndarray
2389
+ | Callable [[DataFrame ], DataFrame ]
2390
+ | Callable [[Any ], _bool ]
2391
+ ),
2392
+ other = ...,
2393
+ * ,
2394
+ inplace : Literal [False ] = ...,
2456
2395
axis : Axis | None = ...,
2457
2396
level : Level | None = ...,
2458
2397
) -> Self : ...
0 commit comments