Exercise: Visualizing Datasets

Check your understanding of creating visualizations using Plotly.

We'll cover the following...

Let’s practice what we have learned so far.

Tasks

Refactor the Python code below to follow the tasks listed:

  • Create a gini variable, and store the string 'GINI index (World Bank estimate)'.

  • Create a year variable, and store the integer 2016.

  • Create the first df subset from the poverty dataset to get the poverty rates for all countries in the year 2016, and sort them based on their Gini index scores.

  • Plot a bar chart using the subset created in the ...