Exercise

Size, location, and price

Next, the estate agents would like to understand how price is related to the size of the property and its distance from the Central Business District (CBD).

In this case, the y-axis of both figures will have the same units, so making a row of subplots is an appropriate choice. source has been set up as a Bokeh object using the melb dataset, and preloaded for you.

Instructions

100 XP
  • Import row from the associated Bokeh module.
  • Add circle glyphs to both figures, representing "price" on the y-axis versus "building_area" in building_size, and "price" on the y-axis versus "distance" in distance.
  • Update the y-axis of both figures to display in the format of $0a, for millions of dollars.
  • Complete the call of show() to display both subplots.