Get startedGet started for free

Adding categories

The owner of a local dog adoption agency has listings for almost 3,000 dogs. One of the most common questions they have been receiving lately is: "What type of area was the dog previously kept in?". You are setting up a pipeline to do some analysis and want to look into what information is available regarding the "keep_in" variable. Both pandas, as pd, and the dogs dataset have been preloaded.

This exercise is part of the course

Working with Categorical Data in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Check frequency counts while also printing the NaN count
print(____)
Edit and Run Code