Skip to content

Latest commit

 

History

History

Fireworks_and_Pm2.5

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

爬取全国367个城市2019年春节期间的空气质量指数数据(六万条数据全面解析,城市春节禁放烟花爆竹真的有用吗?)

项目主要爬取全国367个城市2019年春节期间的空气质量指数数据,并分析烟花爆竹对空气质量的影响,以及城市禁放烟花爆竹是否有效 主要的文件为:

  • data_crawler.py:爬取空气质量指数数据的代码(带说明和注释)
  • Fireworks and Pm2.5.ipynb:Jupyter notebook代码,对空气质量指数数据进行分析
  • AQI_Data.csv: 2019年除夕到初七的6.8万条AQI数据

运行环境:

  • python3.6

需要安装的包:

  • requests
  • pyecharts
  • pandas
  • numpy

注:具体分析说明可以关注微信公众号:Alfred数据室,阅读对应文章《六万条数据全面解析,城市春节禁放烟花爆竹真的有用吗?

Crawling and analysing Air Quality Index of 367 Chinese cityes during Spring Festival.

This project Crawls Air Quality Index of 367 Chinese cityes during Spring Festival, and analyses the influence of fireworks for air quality and effect of prohibiting fireworks in chinese cities during Spring Festival. The main files are listed below:

  • data_crawler.py:codes for crawling Air Quality Index(with annotation)
  • Fireworks and Pm2.5.ipynb:Jupyter notebook for analysing the Air Quality Index
  • AQI_Data.csv: 68155 Air Quality Data from Lunar New Year's Eve to The seventh day of Lunar New Year.

Python environment

  • Python3.6

Packages need to be installed

  • requests
  • pyecharts
  • pandas
  • numpy

Notice: you can find the detailed document by following Alfred's wechat official account: Alfred_Lab