(var, table, trs)
Apply a list of `Transform` instances on an `Orange.data.Variable`.
Apply a list of `Transform` instances on an `Orange.data.Variable`.
Apply a list of Transform instances on an Orange . data . Variable .
def apply_transform(var, table, trs):
    # type: (Orange.data.Variable, Orange.data.Table, List[Transform]) -> Orange.data.Variable
    """
    Apply a list of `Transform` instances on an `Orange.data.Variable`.
    """
    if trs and isinstance(trs[0], ReinterpretTransformTypes):
        reinterpret, trs = trs[0], trs[1:]
        coldata = table_column_data(table, var)
        var = apply_reinterpret(var, reinterpret, coldata)
    if trs:
        return apply_transform_var(var, trs)
    else:
        return var
def apply_transform ( var , table , trs ) : # type: (Orange.data.Variable, Orange.data.Table, List[Transform]) -> Orange.data.Variable if trs and isinstance ( trs [ 0 ] , ReinterpretTransformTypes ) : reinterpret , trs = trs [ 0 ] , trs [ 1 : ] coldata = table_column_data ( table , var ) var = apply_reinterpret ( var , reinterpret , coldata ) if trs : return apply_transform_var ( var , trs ) else : return var