COVID-19 in East Asian Megacities
This repository holds original Python code for processing and visualization COVID-19 data in East Asian megacities amid Omicron variant outbreak including Seoul (서울), Tokyo (東京), Osaka (大阪), Hong Kong (香港) and Shanghai (上海).
Data Scheme
Omicron Wave in 5 Cities
The processed data has the following fields:
- date
- daily new cases (raw)
- daily new cases (7-day moving average)
- accumulated cases
The first day in the processed data is set to be the day of initial local Omicron case discovery.
The processed data can be found in data
folder as CSV files.
Shanghai District-wise Data
(上海市按各行政区疫情公开统计数据)
处理前的原始数据包含各区自2022年2月26日起的每日实际新增感染者(即确诊病例+无症状感染者-由无症状感染者转为确诊)人数。
处理后的数据有如下数据列:
- 日期
- 各区新增 (原始数据)
- 各区新增 (7日移动平均)
- 各区累计确诊 为了避免对数—对数坐标下数据点值为0导致的问题,处理后的数据自2022年3月27日,即浦东浦南崇明封控前一天开始。
数据均以CSV逗号分隔表格文件格式表示。
Preview
Dependencies
pip install -r requirements.txt
Usage
Data can be updated by running collect_data.py
To make plots, please refer to the example iPython notebook.
Data Sources
City | Notes |
---|---|
Seoul | JSON API |
Tokyo | JSON API |
Osaka | JSON API |
Hong Kong | JSON API |
Shanghai | Manually maintained CSV file |
Beijing - Local | Manually maintained CSV file |
Appendix
Keyword in Local Language
Region | COVID-19 | Omicron variant |
---|---|---|
Korea | 코로나바이러스감염증-19 (코로나19) | 오미크론 변이 |
Japan | 新型コロナウイルス感染症 | オミクロン変異株 |
Hong Kong SAR, China | 2019冠狀病毒病 | Omicron變異株 |
China (Mainland) | 新型冠状病毒肺炎 (新冠肺炎) | 奥密克戎变异株 |