Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Python simply analyzes college entrance exam data


Jun 01, 2021 Article blog



This article was reproduced to Know ID: Charles (Bai Lu) knows his personal column

Download the W3Cschool Mobile App, 0 Foundation Anytime, Anywhere Learning Programming >> Poke this to learn

Lead

Unlike exam papers, in real life, there are things that never have an answer.

Lead

A week has passed since the 2018 college entrance examination, hot spots have gradually shifted from the college entrance examination to the World Cup, not willing to be pseudo-fans I still choose to simply and casually analyze some of the data of the college entrance examination

Let's start happily

Related documents


Related documents

Web disk download link: https://pan.baidu.com/s/1zvVTTxfjmrTxjjX_M_DoEA

Password: 9jyd

The relevant file contains all the source code and data covered in this article.

Data originates from the network and is not guaranteed to be completely reliable.

Develop tools


Develop tools

Python version: 3.6.4

Related modules:

pyecharts module;

and some Python's own modules.

Environment construction


Environment construction

Install Python and add it to the environment variable, and pip installs the relevant modules that are required.

The installation of the pyecharts module can be referred to as follows:

Install Python and add it to the environment variable, and pip installs the relevant modules that are required.

Additional instructions:

When the pyecharts module is installed, follow these commands:

pip install echarts-countries-pypkg

pip install echarts-china-provinces-pypkg

pip install echarts-china-cities-pypkg

pip install pyecharts

If it occurs during installation:

'utf-8' codec can't decode byte 0xb6

Or a similar coding error prompt.

Try modifying the 75th line of code for the __init__.py file under the path shown below the Python installation folder:

 Python simply analyzes college entrance exam data1

Modify to what is shown in the following image:

 Python simply analyzes college entrance exam data2

"A decent analysis"


Start the analysis

First let's take a look at the total number of students enrolled in the college entrance examination from the resumption of the college entrance examination (1977):

 Python simply analyzes college entrance exam data3

T_T it seems that the student party is indeed more and more.

But doesn't that seem to make it very intuitive to see the annual admission ratio? Ok, let's take a visual look at it:

 Python simply analyzes college entrance exam data4  Python simply analyzes college entrance exam data5

It seems that college is getting more and more "easy" to say is not a hole to wind, the total admission ratio is high terrible

What about the provinces?

Because the final number of college entrance examination in the provinces of the statistical standards are not the same, some are only statistics undergraduate, some are statistical, in order to avoid the statistical standards and bring about unfair comparison, we only analyze the number of college entrance examination candidates in each province.

The distribution of the number of candidates for the college entrance examination in each province from 2010 to this year (2018) is as follows:

 Python simply analyzes college entrance exam data6

The number of college entrance examination candidates in Henan, T_T, is truly outstanding.

So how are the number of universities in each province distributed? Taking the number of public undergraduate universities as a statistical criterion, the distribution map is probably as follows:

 Python simply analyzes college entrance exam data7

Emmm。 B eijing and Jiangsu ranked first and second, respectively. It's inevitable to think about T_T

So what about the distribution of 985-211 colleges and universities?

 Python simply analyzes college entrance exam data8

"Well, then love is gone." See this silently do not speak.

To the province x axis, the year is the y axis, the number of candidates in the province for the z axis to more intuitively see the number of candidates each year in the province changes:

 Python simply analyzes college entrance exam data9

The order of the provinces in the figure above is as follows:

Beijing, Sichuan, Shaanxi, Jiangxi, Jilin, Ningxia, Guangxi, Inner Mongolia, Gansu, Tibet, Fujian, Shanghai, Guangdong, Shandong, Zhejiang, Henan, Anhui, Jiangsu, Hebei, Heilongjiang, Hunan, Hubei, Shanxi, Yunnan, Guizhou, Hainan, Liaoning, Chongqing, Tianjin, Qinghai, Xinjiang, Taiwan did not join because there was no data.

The number of college entrance exam candidates in Henan T_T is really scary.

Emmm, because there is not much data available, and then analysis is probably a fancy map game, think about it or forget it. A s for personal opinions, it's better not to publish them. After all, everyone's Hamlet is different.

more


more

The relevant documents contain all the source code, data and results involved in this article, in which the data source network, I do not guarantee its reliability.

The corresponding comments need to be removed before the source code can be run.