(self, x1, x2)
return data1, data2
Return discrete columns from the given tables.
        If the second table is None, it defaults to the first table.
Return discrete columns from the given tables.
        If the second table is None, it defaults to the first table.
Return discrete columns from the given tables . If the second table is None it defaults to the first table .
def discrete_columns(self, x1, x2):
        """
        Return discrete columns from the given tables.
        If the second table is None, it defaults to the first table.
        """
        if self.discrete.all():
            data1, data2 = x1, x1 if x2 is None else x2
        else:
            data1 = x1[:, self.discrete]
            data2 = data1 if x2 is None else x2[:, self.discrete]
        return data1, data2
def discrete_columns ( self , x1 , x2 ) : if self . discrete . all ( ) : data1 , data2 = x1 , x1 if x2 is None else x2 else : data1 = x1 [ : , self . discrete ] data2 = data1 if x2 is None else x2 [ : , self . discrete ] return data1 , data2