(self, filter, col)
return sel
Return selection of rows matched by the given discrete filter.

        Parameters
        ----------
        filter: FilterDiscrete
        col: np.ndarray

        Returns
        -------
        A 1d bool array. len(result) == len(self)
Return selection of rows matched by the given discrete filter.
Return selection of rows matched by the given discrete filter .
def _discrete_filter_to_indicator(self, filter, col):
        """Return selection of rows matched by the given discrete filter.

        Parameters
        ----------
        filter: FilterDiscrete
        col: np.ndarray

        Returns
        -------
        A 1d bool array. len(result) == len(self)
        """
        if filter.values is None:  # <- is defined filter
            col = col.astype(float)
            return ~np.isnan(col)

        sel = np.zeros(len(self), dtype=bool)
        for val in filter.values:
            if not isinstance(val, Real):
                val = self.domain[filter.column].to_val(val)
            sel += (col == val)
        return sel
def _discrete_filter_to_indicator ( self , filter , col ) : if filter . values is None : # <- is defined filter col = col . astype ( float ) return ~ np . isnan ( col ) sel = np . zeros ( len ( self ) , dtype = bool ) for val in filter . values : if not isinstance ( val , Real ) : val = self . domain [ filter . column ] . to_val ( val ) sel += ( col == val ) return sel