(self, data)
return transformed
Return transformed column from the data by extracting the column view
        from the data and passing it to the `transform` method.
Return transformed column from the data by extracting the column view
        from the data and passing it to the `transform` method.
Return transformed column from the data by extracting the column view from the data and passing it to the transform method .
def __call__(self, data):
        """
        Return transformed column from the data by extracting the column view
        from the data and passing it to the `transform` method.
        """
        inst = isinstance(data, Instance)
        if inst:
            data = Table.from_list(data.domain, [data])
        data = data.transform(self.need_domain)
        if self.variable.is_primitive():
            col = data.X
        else:
            col = data.metas
        if not sp.issparse(col) and col.ndim > 1:
            col = col.squeeze(axis=1)
        transformed = self.transform(col)
        if inst:
            transformed = transformed[0]
        return transformed
def __call__ ( self , data ) : inst = isinstance ( data , Instance ) if inst : data = Table . from_list ( data . domain , [ data ] ) data = data . transform ( self . need_domain ) if self . variable . is_primitive ( ) : col = data . X else : col = data . metas if not sp . issparse ( col ) and col . ndim > 1 : col = col . squeeze ( axis = 1 ) transformed = self . transform ( col ) if inst : transformed = transformed [ 0 ] return transformed