(self, row_items, col_items=None)
return obj
Return a submatrix

        Args:
            row_items: indices of rows
            col_items: incides of columns
Return a submatrix
Return a submatrix
def submatrix(self, row_items, col_items=None):
        """
        Return a submatrix

        Args:
            row_items: indices of rows
            col_items: incides of columns
        """
        if not col_items:
            col_items = row_items
        obj = self[np.ix_(row_items, col_items)]
        if self.row_items is not None:
            obj.row_items = self.row_items[row_items]
        if self.col_items is not None:
            if self.col_items is self.row_items and row_items is col_items:
                obj.col_items = obj.row_items
            else:
                obj.col_items = self.col_items[col_items]
        return obj
def submatrix ( self , row_items , col_items = None ) : if not col_items : col_items = row_items obj = self [ np . ix_ ( row_items , col_items ) ] if self . row_items is not None : obj . row_items = self . row_items [ row_items ] if self . col_items is not None : if self . col_items is self . row_items and row_items is col_items : obj . col_items = obj . row_items else : obj . col_items = self . col_items [ col_items ] return obj