Incorporating the Function into the App

Final goal

Here’s the plan for the functionality that we are going to introduce:

  1. Create a drop-down list using the countries and regions available in our dataset.
  2. Create a callback function that takes the selected country, filters the dataset, and finds the population of that country in the year 2010.
  3. Return a small report about the found data. The illustration below shows the desired end result:

Get hands-on with 1200+ tech skills courses.