@@ -649,7 +649,7 @@ def map_batches(
649649 function = function , return_dtype = return_dtype
650650 ),
651651 # safest assumptions
652- self ._metadata .with_kind_and_extra_open_window (ExprKind .CHANGES_LENGTH ),
652+ self ._metadata .with_kind_and_extra_open_window (ExprKind .FILTRATION ),
653653 )
654654
655655 def skew (self : Self ) -> Self :
@@ -869,7 +869,7 @@ def unique(self: Self) -> Self:
869869 """
870870 return self .__class__ (
871871 lambda plx : self ._to_compliant_expr (plx ).unique (),
872- self ._metadata .with_kind (ExprKind .CHANGES_LENGTH ),
872+ self ._metadata .with_kind (ExprKind .FILTRATION ),
873873 )
874874
875875 def abs (self : Self ) -> Self :
@@ -1233,7 +1233,7 @@ def filter(self: Self, *predicates: Any) -> Self:
12331233 str_as_lit = False ,
12341234 ),
12351235 combine_metadata (self , * flat_predicates , str_as_lit = False ).with_kind (
1236- ExprKind .CHANGES_LENGTH
1236+ ExprKind .FILTRATION
12371237 ),
12381238 )
12391239
@@ -1321,7 +1321,7 @@ def arg_true(self: Self) -> Self:
13211321 issue_deprecation_warning (msg , _version = "1.23.0" )
13221322 return self .__class__ (
13231323 lambda plx : self ._to_compliant_expr (plx ).arg_true (),
1324- self ._metadata .with_kind_and_extra_open_window (ExprKind .CHANGES_LENGTH ),
1324+ self ._metadata .with_kind_and_extra_open_window (ExprKind .FILTRATION ),
13251325 )
13261326
13271327 def fill_null (
@@ -1449,7 +1449,7 @@ def drop_nulls(self: Self) -> Self:
14491449 """
14501450 return self .__class__ (
14511451 lambda plx : self ._to_compliant_expr (plx ).drop_nulls (),
1452- self ._metadata .with_kind (ExprKind .CHANGES_LENGTH ),
1452+ self ._metadata .with_kind (ExprKind .FILTRATION ),
14531453 )
14541454
14551455 def sample (
@@ -1490,7 +1490,7 @@ def sample(
14901490 lambda plx : self ._to_compliant_expr (plx ).sample (
14911491 n , fraction = fraction , with_replacement = with_replacement , seed = seed
14921492 ),
1493- self ._metadata .with_kind (ExprKind .CHANGES_LENGTH ),
1493+ self ._metadata .with_kind (ExprKind .FILTRATION ),
14941494 )
14951495
14961496 def over (
@@ -1535,7 +1535,7 @@ def over(
15351535 |2 4 y 4|
15361536 └────────────────────────────┘
15371537 """
1538- if self ._metadata .kind .is_changes_length ():
1538+ if self ._metadata .kind .is_filtration ():
15391539 msg = "`.over()` can not be used for expressions which change length."
15401540 raise LengthChangingExprError (msg )
15411541 kind = ExprKind .TRANSFORM
@@ -1754,7 +1754,7 @@ def head(self: Self, n: int = 10) -> Self:
17541754 issue_deprecation_warning (msg , _version = "1.22.0" )
17551755 return self .__class__ (
17561756 lambda plx : self ._to_compliant_expr (plx ).head (n ),
1757- self ._metadata .with_kind_and_extra_open_window (ExprKind .CHANGES_LENGTH ),
1757+ self ._metadata .with_kind_and_extra_open_window (ExprKind .FILTRATION ),
17581758 )
17591759
17601760 def tail (self : Self , n : int = 10 ) -> Self :
@@ -1782,7 +1782,7 @@ def tail(self: Self, n: int = 10) -> Self:
17821782 issue_deprecation_warning (msg , _version = "1.22.0" )
17831783 return self .__class__ (
17841784 lambda plx : self ._to_compliant_expr (plx ).tail (n ),
1785- self ._metadata .with_kind_and_extra_open_window (ExprKind .CHANGES_LENGTH ),
1785+ self ._metadata .with_kind_and_extra_open_window (ExprKind .FILTRATION ),
17861786 )
17871787
17881788 def round (self : Self , decimals : int = 0 ) -> Self :
@@ -1877,7 +1877,7 @@ def gather_every(self: Self, n: int, offset: int = 0) -> Self:
18771877 issue_deprecation_warning (msg , _version = "1.22.0" )
18781878 return self .__class__ (
18791879 lambda plx : self ._to_compliant_expr (plx ).gather_every (n = n , offset = offset ),
1880- self ._metadata .with_kind_and_extra_open_window (ExprKind .CHANGES_LENGTH ),
1880+ self ._metadata .with_kind_and_extra_open_window (ExprKind .FILTRATION ),
18811881 )
18821882
18831883 # need to allow numeric typing
@@ -1949,7 +1949,7 @@ def mode(self: Self) -> Self:
19491949 """
19501950 return self .__class__ (
19511951 lambda plx : self ._to_compliant_expr (plx ).mode (),
1952- self ._metadata .with_kind (ExprKind .CHANGES_LENGTH ),
1952+ self ._metadata .with_kind (ExprKind .FILTRATION ),
19531953 )
19541954
19551955 def is_finite (self : Self ) -> Self :
0 commit comments