The attached file is a CSV file recording the population of each
county and city in Taiwan as of February 2022, recording the names
of cities, district, male and female population, and area.
Please read the data and calculate the following for each
city: total population, total area, and population density.
Finally, output the five most densely populated cities are sorted
by DataFrame from highest to lowest population density(Don't use
print function, just type the DataFrame variables in the last code
line and output the city name, population, area and population
density.)
(here is the data)
The attached file is a CSV file recording the population of each county and city in Taiwan as of February 2022, recordin
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am