Updating categorical plots
Hotels are constantly working to get better reviews from their customers. A hotel chain has asked you to create visualizations to help the company understand why people might provide various ratings after staying at their hotels. A manager has asked if hotels with "Free internet"
receive higher reviews given the "Traveler type"
.
Creating visualizations is an iterative process. In this exercise, you will start with a basic graphic and iteratively add features until you have a finished product. The reviews
dataset has been preloaded for you, as well as both seaborn
, as sns
, and matplotlib.pyplot
as plt
.
Diese Übung ist Teil des Kurses
Working with Categorical Data in Python
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# Adjust the color
ax = sns.catplot(
x="Free internet", y="Score",
hue="Traveler type", kind="bar",
data=reviews,
____=____
)