1. Learn
  2. /
  3. Courses
  4. /
  5. Interactive Data Visualization with Bokeh

Exercise

Categorical column subplots

The estate agents would like you to analyze how property size and amount of land vary by region in Melbourne. With the column layout, you can create two subplots displaying these relationships, using region as the x-axis.

The melb DataFrame has been grouped by region, and the average values for land_area and building_area have been calculated. This has been set up as a Bokeh data object called source, preloaded for you.

Instructions

100 XP
  • Import column from the associated Bokeh module.
  • Add bar glyphs to building_size, plotting the "building_area" for each "region".
  • Add bar glyphs to land_size, representing the "land_area" for each "region".
  • Generate an HTML file called "my_first_column.html", and complete the call of show() to display both subplots.