1. Learn
  2. /
  3. Courses
  4. /
  5. Working with Categorical Data in Python

Exercise

Bar plot using hue

Aggregating information across multiple categories is often necessary to help stakeholders better understand their data. In preparation for building a dashboard that will allow users to select up to two variables when creating visualizations, you want to test visualizations that use different combinations of categorical variables using a bar plot.

Instructions 1/4

undefined XP
  • 1
    • Update the plot so that "Casino" (along the x-axis) and "Free internet" (to color the bars) are used to split the data.
  • 2
    • Switch the categories so that "Free internet" is on the x-axis and "Casino" is in the legend.
  • 3
    • Update the x parameter to be "User continent".
  • 4
    • The font was too large for the last visualization - change the font size to 1.0.