def extract_features(feature_names, data):
    fea = pd.DataFrame(index=data.index)
    for name in feature_names:
        if data in name:
            fea = fea.join(data[name])
        else:
            fea = fea.join(getattr(features, 
                camel_to_underscores(name))(data))
    return fea
dataset/ETHPy150Open benhamner/Stack-Overflow-Competition/features.py/extract_features/swapped operands of `in`