コード例 #1
0
ファイル: mapped_array.py プロジェクト: zhgu-dev/vectorbt
 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)
コード例 #2
0
 def is_sorted(self) -> bool:
     """Check whether column array is sorted."""
     return nb.is_col_sorted_nb(self.col_arr)
コード例 #3
0
ファイル: base.py プロジェクト: vlam020/vectorbt
 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'])
コード例 #4
0
ファイル: base.py プロジェクト: jingmouren/vectorbt
 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)