2727 LazyExprT ,
2828 NativeExprT ,
2929)
30- from narwhals ._typing_compat import deprecated
3130from narwhals ._utils import _StoresCompliant
3231from narwhals .dependencies import get_numpy , is_numpy_array
3332
@@ -107,9 +106,6 @@ def cast(self, dtype: IntoDType) -> Self: ...
107106 def count (self ) -> Self : ...
108107 def min (self ) -> Self : ...
109108 def max (self ) -> Self : ...
110- def arg_min (self ) -> Self : ...
111- def arg_max (self ) -> Self : ...
112- def arg_true (self ) -> Self : ...
113109 def mean (self ) -> Self : ...
114110 def sum (self ) -> Self : ...
115111 def median (self ) -> Self : ...
@@ -134,8 +130,6 @@ def len(self) -> Self: ...
134130 def log (self , base : float ) -> Self : ...
135131 def round (self , decimals : int ) -> Self : ...
136132 def mode (self ) -> Self : ...
137- def head (self , n : int ) -> Self : ...
138- def tail (self , n : int ) -> Self : ...
139133 def shift (self , n : int ) -> Self : ...
140134 def is_finite (self ) -> Self : ...
141135 def is_nan (self ) -> Self : ...
@@ -148,7 +142,6 @@ def cum_min(self, *, reverse: bool) -> Self: ...
148142 def cum_max (self , * , reverse : bool ) -> Self : ...
149143 def cum_prod (self , * , reverse : bool ) -> Self : ...
150144 def is_in (self , other : Any ) -> Self : ...
151- def sort (self , * , descending : bool , nulls_last : bool ) -> Self : ...
152145 def rank (self , method : RankMethod , * , descending : bool ) -> Self : ...
153146 def replace_strict (
154147 self ,
@@ -158,14 +151,6 @@ def replace_strict(
158151 return_dtype : IntoDType | None ,
159152 ) -> Self : ...
160153 def over (self , partition_by : Sequence [str ], order_by : Sequence [str ]) -> Self : ...
161- def sample (
162- self ,
163- n : int | None ,
164- * ,
165- fraction : float | None ,
166- with_replacement : bool ,
167- seed : int | None ,
168- ) -> Self : ...
169154 def quantile (
170155 self , quantile : float , interpolation : RollingInterpolationMethod
171156 ) -> Self : ...
@@ -209,8 +194,6 @@ def rolling_std(
209194 self , window_size : int , * , min_samples : int , center : bool , ddof : int
210195 ) -> Self : ...
211196
212- @deprecated ("Since `1.22.0`" )
213- def gather_every (self , n : int , offset : int ) -> Self : ...
214197 def __and__ (self , other : Any ) -> Self : ...
215198 def __or__ (self , other : Any ) -> Self : ...
216199 def __add__ (self , other : Any ) -> Self : ...
0 commit comments