Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Python to discover the secrets of census data

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail the secrets of how to use Python to discover data in census data. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

1)。 The distribution of population in the whole country

The population of different provinces and cities, to a certain extent, reflects the development level of a region, with the help of bar charts and national map visualization to show the national population, some of the procedures are shown in the following figure.

The visualization results are as follows:

Through the visual display of the national population (excluding Taiwan and the South China Sea islands), Guangdong has become the most populous province in the country with a population of more than 120 million, followed by Shandong and Henan. As for the area with the least population, Xizang has a population of 3.6481 million.

2)。 The proportion of men and women in the country

As the majority of unmarried young people, the difference in the proportion of men and women is more or less related to our lifetime. The following chart is aimed at the national population ratio of men and women in 2010 and 2020.

The visualization result is shown in the following figure:

By comparing the sixth census and the seventh census, the ratio of men to women in the country still maintains the trend of more boys than girls, while the proportion of women has dropped from 48.76% to 48.73% compared with 2010. Although it was only a recession of 0.03%, the number of men outnumbered women by 34.9 million in the seventh census, about 1.6 times the population of Beijing.

3)。 Regional population distribution

The distribution of regional population intuitively shows the degree of population aggregation of the whole country. The following figure shows the proportion of regional population distribution of the sixth and seventh censuses.

From the proportion of population distribution in the map, the trend of population distribution in the decade from 2010 to 2020 is very similar, and most of the population is concentrated in the eastern region.

Compared with the proportion of population distribution in 2010 and 2020, the proportion of population in the western and northeast regions is further declining, while the proportion of the population in the east is further increasing.

In our daily life, we can also feel that more and more people go to the eastern region to seek opportunities for development. As an old industrial base in Northeast China, the problem of population loss is very serious.

4)。 Age structure composition

The problem of age has always been a problem that we can not avoid. China is also gradually entering an aging society. In the following chart program, the bar chart is used to show the age composition of the population in various regions of our country.

A visual representation of the composition of its age is shown in the following figure:

As can be seen from the age structure distribution map, the proportion of people over 60 years old in the country is 18.7%, while that in all the three eastern provinces is more than 20%, including 25.72% in Liaoning. This is also a malpractice brought about by population loss, the reduction of the labor force and the increase in the proportion of the elderly population. In Guangdong, as the most populous province, the proportion of people over the age of 60 is only 12.35, far lower than the national average.

5)。 Education level

For the assessment of the national level of education, here we take the average number of years of education of people over 15 years old as an indicator. The visualization results are shown in the following figure.

From the data above, we can see that the education data do not include the education data of Taiwan and the South China Sea islands. Beijing is the region with the highest level of education in the country, while as first-tier cities, Beijing and Shanghai are in the leading level of education in the country. It can be seen that first-tier cities are very attractive to highly educated talents.

This is the end of the article on "how to use Python to discover the secrets of census data". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report