Beispiel #1
0
 def is_sorted(self, incl_id=False):
     """Check whether mapped array is sorted."""
     if incl_id:
         return nb.is_col_idx_sorted_nb(self.col_arr, self.id_arr)
     return nb.is_col_sorted_nb(self.col_arr)
Beispiel #2
0
 def is_sorted(self) -> bool:
     """Check whether column array is sorted."""
     return nb.is_col_sorted_nb(self.col_arr)
Beispiel #3
0
 def is_sorted(self, incl_id: bool = False) -> bool:
     """Check whether records are sorted."""
     if incl_id:
         return nb.is_col_idx_sorted_nb(self.values['col'],
                                        self.values['id'])
     return nb.is_col_sorted_nb(self.values['col'])
Beispiel #4
0
 def is_sorted(self, incl_id: bool = False) -> bool:
     """Check whether records are sorted."""
     if incl_id:
         return nb.is_col_idx_sorted_nb(self.col_arr, self.id_arr)
     return nb.is_col_sorted_nb(self.col_arr)