Scoring covid-19 policies by prefecture in Japan
DOI: https://doi.org/10.24433/CO.2522268.v1
Y. Takefuji, "The Best and Sustainable COVID-19 Policy in the World," in IEEE Transactions on Computational Social Systems, doi: 10.1109/TCSS.2022.3227926.
Takefuji, Y. Policy analysis and data mining tools for controlling COVID-19 policies. Netw Model Anal Health Inform Bioinforma 12, 4 (2023). https://doi.org/10.1007/s13721-022-00400-3
Since the NHK dataset is not updated, the following dataset will be used.
https://covid19.mhlw.go.jp/public/opendata/deaths_cumulative_daily.csv
or
https://covid19.mhlw.go.jp/public/opendata/number_of_deaths_daily.csv
How to install jpscore
You need pandas and openpyxl library.
$ pip install pandas
$ pip install openpyxl
On WSL on Windows, MacOS, or Linux operating systems, run the following command:
$ pip install jpscore
On Windows 11 or 10
$ pip install jpscore --force-reinstall --no-cache-dir --no-binary :all:
The latest data on the number of deaths by prefecture in Japan is at the following site:
https://www3.nhk.or.jp/n-data/opendata/coronavirus/nhk_news_covid19_prefectures_daily_data.csv
How to run jpscore
The result.csv will be generated by the following command: as of march 19, 2022
$ jpscore
This is with after version 0.7 or 0.8.
This is with version 0.1~0.6.
Exercises
1. Make a csv file of the total deaths by prefecture using the latest data. Hints: Use pandas DataFrame. Prefecture deaths population score ... Find the latest date on the total deaths by prefecture in the csv file. Make a list of prefectures. Make the total deaths data by prefecture. Find the latest population csv. Make the latest population by prefecture. Calculate a score by prefecture.
Metadata
Release files for jpscore 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| jpscore-0.0.9.tar.gz | 3.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jpscore-0.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 kB
Release files / jpscore-0.0.9.tar.gz
| Download URL | jpscore-0.0.9.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94d592aa5fceeabce09a82790b6a86e165e8c96511720f569c40533cf9ac6f4f
|
|
BLAKE2b-256 checksum How to use checksums |
84c2678c2d31422893411e9d628154a061540a96df1931f3e7c248573f62c87a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.12
|
Release files / jpscore-0.0.9-py3-none-any.whl
| Download URL | jpscore-0.0.9-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23dfbffcdc550aec2fafd2659e6a81874bae88b727abe020699569aa88f47591
|
|
BLAKE2b-256 checksum How to use checksums |
b2142f0580a31a77d5c450bbbe802d371620cd67a9e7d82ef058b51494ef3459
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.12
|
Security for jpscore 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.