@@ -74,7 +74,7 @@ impl AggregationContext<'_> {
7474} 
7575
7676impl  AggregationContext < ' _ >  { 
77-     /// Iterate over groups without greedy aggregation into an AggList. 
77+     /// Iterate over groups lazily, i.e.,  without greedy aggregation into an AggList. 
7878     pub ( super )  fn  iter_groups_lazy ( 
7979        & mut  self , 
8080        keep_names :  bool , 
@@ -83,16 +83,15 @@ impl AggregationContext<'_> {
8383            AggState :: NotAggregated ( _)  => { 
8484                let  groups = self . groups ( ) ; 
8585                let  len = groups. len ( ) ; 
86-                 let  c = self . get_values ( ) . rechunk ( ) ;   //TODO - do we require rechunk? 
86+                 let  c = self . get_values ( ) . rechunk ( ) ; 
8787                let  name = if  keep_names { 
8888                    c. name ( ) . clone ( ) 
8989                }  else  { 
9090                    PlSmallStr :: EMPTY 
9191                } ; 
9292                let  iter = self . groups ( ) . iter ( ) ; 
9393
94-                 // Safety: 
95-                 // kdn TODO 
94+                 // SAFETY: dtype is correct 
9695                unsafe  { 
9796                    Box :: new ( NotAggLazyIter :: new ( 
9897                        c. as_materialized_series ( ) . array_ref ( 0 ) . clone ( ) , 
@@ -235,7 +234,7 @@ struct NotAggLazyIter<'a, I: Iterator<Item = GroupsIndicator<'a>>> {
235234
236235impl < ' a ,  I :  Iterator < Item  = GroupsIndicator < ' a > > >  NotAggLazyIter < ' a ,  I >  { 
237236    /// # Safety 
238-      /// kdn TODO  
237+      /// Caller must ensure the given `logical` dtype belongs to `array`.  
239238     unsafe  fn  new ( 
240239        array :  ArrayRef , 
241240        iter :  I , 
@@ -266,7 +265,8 @@ impl<'a, I: Iterator<Item = GroupsIndicator<'a>>> Iterator for NotAggLazyIter<'a
266265        if  let  Some ( g)  = self . iter . next ( )  { 
267266            self . groups_idx  += 1 ; 
268267            match  g { 
269-                 GroupsIndicator :: Idx ( _)  => todo ! ( ) ,  //kdn TODO 
268+                 // TODO: Implement for Idx GroupsType 
269+                 GroupsIndicator :: Idx ( _)  => todo ! ( ) , 
270270                GroupsIndicator :: Slice ( s)  => { 
271271                    let  mut  arr =
272272                        unsafe  {  self . array . sliced_unchecked ( s[ 0 ]  as  usize ,  s[ 1 ]  as  usize )  } ; 
0 commit comments