I'm trying to convert this Python lambda function to an if-else statement so that I can add other arguments onto it. Could someone explain how this Lambda would look like if converted to an if-esle statement?
df['type'] = df[FEATURE_NAME].map(lambda column_name: 'property' if is_categorical(column_name) else 'metric')