...

/

Exercise: Create a Bar Chart Race

Exercise: Create a Bar Chart Race

Apply what you have learned by writing your own code.

Task 1: Read and display data

Your task is to read the dataset from the country_population.csv file using pandas and display the records to understand their structure and content.

C++
# Write your code here

Task 2: Create a color dictionary

Your task is to define a dictionary mapping country names to colors as follows:

  • Bangladesh: skyblue

  • Brazil: pink

  • China: orange ...