@@ -109,7 +109,7 @@ def __getitem__(
109109 dropna = self ._dropna ,
110110 )
111111
112- @validations .requires_strict_ordering ()
112+ @validations .requires_ordering ()
113113 def head (self , n : int = 5 ) -> df .DataFrame :
114114 block = self ._block
115115 if self ._dropna :
@@ -235,25 +235,25 @@ def count(self) -> df.DataFrame:
235235 def nunique (self ) -> df .DataFrame :
236236 return self ._aggregate_all (agg_ops .nunique_op )
237237
238- @validations .requires_strict_ordering ()
238+ @validations .requires_ordering ()
239239 def cumsum (self , * args , numeric_only : bool = False , ** kwargs ) -> df .DataFrame :
240240 if not numeric_only :
241241 self ._raise_on_non_numeric ("cumsum" )
242242 return self ._apply_window_op (agg_ops .sum_op , numeric_only = True )
243243
244- @validations .requires_strict_ordering ()
244+ @validations .requires_ordering ()
245245 def cummin (self , * args , numeric_only : bool = False , ** kwargs ) -> df .DataFrame :
246246 return self ._apply_window_op (agg_ops .min_op , numeric_only = numeric_only )
247247
248- @validations .requires_strict_ordering ()
248+ @validations .requires_ordering ()
249249 def cummax (self , * args , numeric_only : bool = False , ** kwargs ) -> df .DataFrame :
250250 return self ._apply_window_op (agg_ops .max_op , numeric_only = numeric_only )
251251
252- @validations .requires_strict_ordering ()
252+ @validations .requires_ordering ()
253253 def cumprod (self , * args , ** kwargs ) -> df .DataFrame :
254254 return self ._apply_window_op (agg_ops .product_op , numeric_only = True )
255255
256- @validations .requires_strict_ordering ()
256+ @validations .requires_ordering ()
257257 def shift (self , periods = 1 ) -> series .Series :
258258 window = window_specs .rows (
259259 grouping_keys = tuple (self ._by_col_ids ),
@@ -262,7 +262,7 @@ def shift(self, periods=1) -> series.Series:
262262 )
263263 return self ._apply_window_op (agg_ops .ShiftOp (periods ), window = window )
264264
265- @validations .requires_strict_ordering ()
265+ @validations .requires_ordering ()
266266 def diff (self , periods = 1 ) -> series .Series :
267267 window = window_specs .rows (
268268 grouping_keys = tuple (self ._by_col_ids ),
@@ -271,7 +271,7 @@ def diff(self, periods=1) -> series.Series:
271271 )
272272 return self ._apply_window_op (agg_ops .DiffOp (periods ), window = window )
273273
274- @validations .requires_strict_ordering ()
274+ @validations .requires_ordering ()
275275 def rolling (self , window : int , min_periods = None ) -> windows .Window :
276276 # To get n size window, need current row and n-1 preceding rows.
277277 window_spec = window_specs .rows (
@@ -287,7 +287,7 @@ def rolling(self, window: int, min_periods=None) -> windows.Window:
287287 block , window_spec , self ._selected_cols , drop_null_groups = self ._dropna
288288 )
289289
290- @validations .requires_strict_ordering ()
290+ @validations .requires_ordering ()
291291 def expanding (self , min_periods : int = 1 ) -> windows .Window :
292292 window_spec = window_specs .cumulative_rows (
293293 grouping_keys = tuple (self ._by_col_ids ),
@@ -532,7 +532,7 @@ def __init__(
532532 def _session (self ) -> core .Session :
533533 return self ._block .session
534534
535- @validations .requires_strict_ordering ()
535+ @validations .requires_ordering ()
536536 def head (self , n : int = 5 ) -> series .Series :
537537 block = self ._block
538538 if self ._dropna :
@@ -650,31 +650,31 @@ def agg(self, func=None) -> typing.Union[df.DataFrame, series.Series]:
650650
651651 aggregate = agg
652652
653- @validations .requires_strict_ordering ()
653+ @validations .requires_ordering ()
654654 def cumsum (self , * args , ** kwargs ) -> series .Series :
655655 return self ._apply_window_op (
656656 agg_ops .sum_op ,
657657 )
658658
659- @validations .requires_strict_ordering ()
659+ @validations .requires_ordering ()
660660 def cumprod (self , * args , ** kwargs ) -> series .Series :
661661 return self ._apply_window_op (
662662 agg_ops .product_op ,
663663 )
664664
665- @validations .requires_strict_ordering ()
665+ @validations .requires_ordering ()
666666 def cummax (self , * args , ** kwargs ) -> series .Series :
667667 return self ._apply_window_op (
668668 agg_ops .max_op ,
669669 )
670670
671- @validations .requires_strict_ordering ()
671+ @validations .requires_ordering ()
672672 def cummin (self , * args , ** kwargs ) -> series .Series :
673673 return self ._apply_window_op (
674674 agg_ops .min_op ,
675675 )
676676
677- @validations .requires_strict_ordering ()
677+ @validations .requires_ordering ()
678678 def cumcount (self , * args , ** kwargs ) -> series .Series :
679679 return (
680680 self ._apply_window_op (
@@ -684,7 +684,7 @@ def cumcount(self, *args, **kwargs) -> series.Series:
684684 - 1
685685 )
686686
687- @validations .requires_strict_ordering ()
687+ @validations .requires_ordering ()
688688 def shift (self , periods = 1 ) -> series .Series :
689689 """Shift index by desired number of periods."""
690690 window = window_specs .rows (
@@ -694,7 +694,7 @@ def shift(self, periods=1) -> series.Series:
694694 )
695695 return self ._apply_window_op (agg_ops .ShiftOp (periods ), window = window )
696696
697- @validations .requires_strict_ordering ()
697+ @validations .requires_ordering ()
698698 def diff (self , periods = 1 ) -> series .Series :
699699 window = window_specs .rows (
700700 grouping_keys = tuple (self ._by_col_ids ),
@@ -703,7 +703,7 @@ def diff(self, periods=1) -> series.Series:
703703 )
704704 return self ._apply_window_op (agg_ops .DiffOp (periods ), window = window )
705705
706- @validations .requires_strict_ordering ()
706+ @validations .requires_ordering ()
707707 def rolling (self , window : int , min_periods = None ) -> windows .Window :
708708 # To get n size window, need current row and n-1 preceding rows.
709709 window_spec = window_specs .rows (
@@ -723,7 +723,7 @@ def rolling(self, window: int, min_periods=None) -> windows.Window:
723723 is_series = True ,
724724 )
725725
726- @validations .requires_strict_ordering ()
726+ @validations .requires_ordering ()
727727 def expanding (self , min_periods : int = 1 ) -> windows .Window :
728728 window_spec = window_specs .cumulative_rows (
729729 grouping_keys = tuple (self ._by_col_ids ),
0 commit comments