Introduction to Pandas lesson 12

https://www.codecademy.com/paths/analyze-data-with-python/tracks/ida-4-data-manipulation-pandas/modules/ida-4-1-introduction-to-pandas/lessons/pandas-ii/exercises/review-ii

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')