Reordering categories in a Series
The owner of a local dog adoption agency has asked you take a look at her data on adoptable dogs. She is specifically interested in the size of the dogs in her dataset and wants to know if there are differences in other variables, given a dog's size. The adoptable dogs dataset has been loaded as dogs
and the "size"
variable has already been saved as a categorical column.
This exercise is part of the course
Working with Categorical Data in Python
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Print out the current categories of the size variable
print(____)