Get startedGet started for free

Ordering categories

Not all categories are created equal. In the hotel review dataset, reviews, hotel owners know that most of their customers are from North America. When visualizing data broken out by "User continent" they might want North America to appear first. An ordered list of user continents has been provided as continent_categories. In this exercise, you will work through preparing a visualization that is ordered by the frequency counts of a Series.

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.

# Create a bar chart
sns.set(font_scale=.9)
sns.set_style("whitegrid")
sns.catplot(____, ____, data=reviews, kind=____)
plt.show()
Edit and Run Code