Anyone tell me whats wrong with my code? I’ve copied the syntax from a screenshot of code from a previous lesson why doesnt it return the correct shoe source?
Your code doesn’t look like the code on the right.
double check the lambda function for starters.
hint:
orders['shoe_source'] = orders.shoe_material.apply(lambda x: \
'animal' if x == 'leather' else 'vegan')