Skip to main content

A package for scoring prefecture COVID-19 policies in Japan

Project description

Scoring covid-19 policies by prefecture in Japan

Open in Code Ocean

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.



Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jpscore-0.0.9.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

jpscore-0.0.9-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file jpscore-0.0.9.tar.gz.

File metadata

  • Download URL: jpscore-0.0.9.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.12

File hashes

Hashes for jpscore-0.0.9.tar.gz
Algorithm Hash digest
SHA256 94d592aa5fceeabce09a82790b6a86e165e8c96511720f569c40533cf9ac6f4f
MD5 61a1e7d71151d9a9aa5e253f105da6a1
BLAKE2b-256 84c2678c2d31422893411e9d628154a061540a96df1931f3e7c248573f62c87a

See more details on using hashes here.

File details

Details for the file jpscore-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: jpscore-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.12

File hashes

Hashes for jpscore-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 23dfbffcdc550aec2fafd2659e6a81874bae88b727abe020699569aa88f47591
MD5 433056e0a8f276d70ad93a70ef259d93
BLAKE2b-256 b2142f0580a31a77d5c450bbbe802d371620cd67a9e7d82ef058b51494ef3459

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page