Session Ready
Exercise

Wide and long Data 2

In the previous exercise you converted hdi_cpi_data_long to hdi_cpi_data_wide and saw the difference between the two formats. In this exercise, you will create a scatter plot with corruption_perception_index versus human_development_index. You need to decide which format you will use to create the desired plot.

Note that:

  • rbokeh is pre-loaded
  • Both hdi_cpi_data_long and hdi_cpi_data_wide dataframes are available in this session
Instructions
100 XP
  • Create a scatter plot with corruption_perception_index versus human_development_index (Decide which dataframe you will use, hdi_cpi_data_wide or hdi_cpi_data_long?).
  • Color points by continent.
  • Set alpha to 0.7.
  • For the hover info, use country, cpi_rank,corruption_perception_index and human_development_index.