Search⌘ K
AI Features

Exercise: Visualizing Datasets

Explore how to visualize data distributions by creating subsets and plotting bar and scatter charts in Dash. Learn to manipulate data using Python and enhance your dashboards with meaningful visual representations.

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 ...