I would like to find the average age of people who have a dog using a lambda function,
and so far I have made this code
pets['age'].mean(lambda x: x in pets['pets'] == 'dog')
... but it keeps giving me a value error..... help would be very appriciated!
