How do I extract the two different values (dog and cat) and then combine them under a new Dataframe
I tried
d = pd.DataFrame({'Animal':['cat', 'dog', 'bird', 'dog', 'bird', 'bird'],'Age':[1,3,5,3,4,2]})
df[(df['Animal'] == 'cat')&(df['Animal']=='dog')]
But when trying to locate 2 different values it only shows the top row "Animal Age"
I can find all of the dog values
df[(df['Animal'] == 'dog')]
but I'm not able to extract dog and cat rows at the same time from the Animal column