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 trialGabriel 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
Treehouse Moderator 28,720 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
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
Treehouse Moderator 28,720 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.