def sub_feature(df,feature1, feature2, values):
    """Substitute one list of features for another, within a given subset.
    feature1 = feature to replace feature2
    feature2 = feature to be replaced
    values = values of feature2 for which when true, sub in the corresponding feature1
    """
    for idx in df.index:
        if values in df[feature2][idx]:
            df[feature2][idx] = str(df[feature1][idx])
dataset/ETHPy150Open theusual/kaggle-seeclickfix-ensemble/Bryan/features.py/sub_feature/swapped operands of `in`