(cls, source, row_indices)
return self
Construct a new table by selecting rows from the source table.

        :param source: an existing table
        :type source: Orange.data.Table
        :param row_indices: indices of the rows to include
        :type row_indices: a slice or a sequence
        :return: a new table
        :rtype: Orange.data.Table
Construct a new table by selecting rows from the source table.
Construct a new table by selecting rows from the source table .
def from_table_rows(cls, source, row_indices):
        """
        Construct a new table by selecting rows from the source table.

        :param source: an existing table
        :type source: Orange.data.Table
        :param row_indices: indices of the rows to include
        :type row_indices: a slice or a sequence
        :return: a new table
        :rtype: Orange.data.Table
        """
        self = cls()
        self.domain = source.domain
        with self.unlocked_reference():
            self.X = source.X[row_indices]
            if self.X.ndim == 1:
                self.X = self.X.reshape(-1, len(self.domain.attributes))
            self.Y = source.Y[row_indices]
            self.metas = source.metas[row_indices]
            if self.metas.ndim == 1:
                self.metas = self.metas.reshape(-1, len(self.domain.metas))
            self.W = source.W[row_indices]
            self.name = getattr(source, 'name', '')
            self.ids = np.array(source.ids[row_indices])
            self.attributes = getattr(source, 'attributes', {})
        return self
def from_table_rows ( cls , source , row_indices ) : self = cls ( ) self . domain = source . domain with self . unlocked_reference ( ) : self . X = source . X [ row_indices ] if self . X . ndim == 1 : self . X = self . X . reshape ( - 1 , len ( self . domain . attributes ) ) self . Y = source . Y [ row_indices ] self . metas = source . metas [ row_indices ] if self . metas . ndim == 1 : self . metas = self . metas . reshape ( - 1 , len ( self . domain . metas ) ) self . W = source . W [ row_indices ] self . name = getattr ( source , 'name' , '' ) self . ids = np . array ( source . ids [ row_indices ] ) self . attributes = getattr ( source , 'attributes' , { } ) return self