Case: Calculation of population data in Asian countries

 

 

Screenshot of the data:

This data contains the population data of Asia in 10 years from 2006 to 2015, with 10 rows and 50 columns of data. We need to use Numpy to complete the following data tasks:

  1. Calculate the population data of each country in 2015
  2. Calculate the population data of various periods in North Korea's history
  3. Calculate the population data of Myanmar in 2014
  4. Calculate the historical average population data for each country
  5. Calculate the total population of Asia in 2015, and the average population
  6. Calculate the total and average population of India, Cambodia and Afghanistan in 2011, 2012 and 2013
  7. Calculate the population difference between any two countries
  8. Calculate the top 10 countries in Asia by population in 2012

Sample code:

2.7_Calculation of population data of Asian countries

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325097887&siteId=291194637