Custom Transformer to add additional column
Custom Transformer to add additional column Question: I am trying to replicate my lambda function into my pipeline def determine_healthy(_list): if (‘no’ in _list[‘smoker’] and (_list[‘bmi’] >= 18.5) and (_list[‘bmi’]<= 24.9)): return True else: return False df[‘healthy’] = df.apply(lambda row: determine_healthy(row), axis=1) The problem comes when I am integrating it into my pipeline, I’m not …