Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Gabriel Guerra](https://secure.gravatar.com/avatar/0a4e76cbae5d5a778043a49a7d06037f?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Gabriel Guerra
Data Analysis Techdegree Graduate 9,109 PointsNo referrals not working
Hi there
https://teamtreehouse.com/library/introduction-to-pandas/exploring-pandas/review-selecting-data
Any idea why my code is not working:
is_puppy = office_dogs.age <= 0
puppies = office_dogs[is_puppy]
mature_dogs = office_dogs[~no_referrals_index.puppies]
Thanks, Gabriel
3 Answers
![Jeff Muday](https://uploads.teamtreehouse.com/production/profile-photos/5900142/micro_jeff_face.jpg)
Jeff Muday
Treehouse Moderator 28,718 PointsI tried it out and is_puppy
is a Pandas series and would work with the office_dogs
data frame.
~is_puppy
makes sense to me. However, the quiz accepts ~puppies
So I am also confused.
is_puppy = office_dogs.age <= 0
puppies = office_dogs[is_puppy]
mature_dogs = office_dogs[~is_puppy]
![Joe Towles](https://secure.gravatar.com/avatar/57f6323f68af1bef8223b0cf5ca3735a?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Joe Towles
6,833 PointsI'm having the same issues but I cannot make the change to what Jeff has posted.
This is frustrating. I'm having the same issues. I get the community help and I use it regularly but after 4 months, this needs to be resolved or answer posted. This is a paid site folks. Someone on the staff please engage
![Jeff Muday](https://uploads.teamtreehouse.com/production/profile-photos/5900142/micro_jeff_face.jpg)
Jeff Muday
Treehouse Moderator 28,718 PointsAs a moderator, I am not able to change quizzes. But I would urge you to not let this minor error on a quiz stop your progress.
The Pandas
library is extremely important to the field of Python data science. I use it nearly every day on my job. Getting to know this library is essential for some programming jobs, and a great tool to have in your "belt" for others.