jpscore


Namejpscore JSON
Version 0.0.9 PyPI version JSON
download
home_pagehttps://github.com/y-takefuji/covid_score_japan
SummaryA package for scoring prefecture COVID-19 policies in Japan
upload_time2024-04-22 08:30:47
maintainerNone
docs_urlNone
authoryoshiyasu takefuji
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Scoring covid-19 policies by prefecture in Japan 
[![Open in Code Ocean](https://codeocean.com/codeocean-assets/badge/open-in-code-ocean.svg)](https://codeocean.com/capsule/2570c898-d60b-41ec-bd42-25d0a0629ba9/tree)

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.

<img src='https://github.com/y-takefuji/covid_score_japan/raw/main/jpscoreEN.jpg' width=397 height=1393>

This is with version 0.1~0.6.

<img src='https://github.com/y-takefuji/covid_score_japan/raw/main/result.png' width=397 height=1393>

# Exercises
<pre>
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.




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/y-takefuji/covid_score_japan",
    "name": "jpscore",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "yoshiyasu takefuji",
    "author_email": "takefuji@keio.jp",
    "download_url": "https://files.pythonhosted.org/packages/84/c2/678c2d31422893411e9d628154a061540a96df1931f3e7c248573f62c87a/jpscore-0.0.9.tar.gz",
    "platform": null,
    "description": "# Scoring covid-19 policies by prefecture in Japan \n[![Open in Code Ocean](https://codeocean.com/codeocean-assets/badge/open-in-code-ocean.svg)](https://codeocean.com/capsule/2570c898-d60b-41ec-bd42-25d0a0629ba9/tree)\n\nDOI: https://doi.org/10.24433/CO.2522268.v1\n\nY. Takefuji, \"The Best and Sustainable COVID-19 Policy in the World,\" in IEEE Transactions on Computational Social Systems, doi: 10.1109/TCSS.2022.3227926.\n\nTakefuji, 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\n\n# Since the NHK dataset is not updated, the following dataset will be used.\n\nhttps://covid19.mhlw.go.jp/public/opendata/deaths_cumulative_daily.csv\n\nor\n\nhttps://covid19.mhlw.go.jp/public/opendata/number_of_deaths_daily.csv\n\n\n# How to install jpscore\nYou need pandas and openpyxl library.\n\n$ pip install pandas\n\n$ pip install openpyxl\n\nOn WSL on Windows, MacOS, or Linux operating systems, run the following command:\n\n$ pip install jpscore\n\nOn Windows 11 or 10\n\n$ pip install jpscore --force-reinstall --no-cache-dir --no-binary :all:\n\nThe latest data on the number of deaths by prefecture in Japan is at the following site:\n\nhttps://www3.nhk.or.jp/n-data/opendata/coronavirus/nhk_news_covid19_prefectures_daily_data.csv\n\n# How to run jpscore\nThe result.csv will be generated by the following command:\nas of march 19, 2022\n\n$ jpscore\n\nThis is with after version 0.7 or 0.8.\n\n<img src='https://github.com/y-takefuji/covid_score_japan/raw/main/jpscoreEN.jpg' width=397 height=1393>\n\nThis is with version 0.1~0.6.\n\n<img src='https://github.com/y-takefuji/covid_score_japan/raw/main/result.png' width=397 height=1393>\n\n# Exercises\n<pre>\n1. Make a csv file of the total deaths by prefecture using the latest data.\nHints:\nUse pandas DataFrame.\nPrefecture deaths population score\n...\n\nFind the latest date on the total deaths by prefecture in the csv file.\nMake a list of prefectures.\nMake the total deaths data by prefecture.\nFind the latest population csv.\nMake the latest population by prefecture.\nCalculate a score by prefecture.\n\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package for scoring prefecture COVID-19 policies in Japan",
    "version": "0.0.9",
    "project_urls": {
        "Bug Tracker": "https://github.com/y-takefuji/covid_score_japan",
        "Homepage": "https://github.com/y-takefuji/covid_score_japan"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b2142f0580a31a77d5c450bbbe802d371620cd67a9e7d82ef058b51494ef3459",
                "md5": "433056e0a8f276d70ad93a70ef259d93",
                "sha256": "23dfbffcdc550aec2fafd2659e6a81874bae88b727abe020699569aa88f47591"
            },
            "downloads": -1,
            "filename": "jpscore-0.0.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "433056e0a8f276d70ad93a70ef259d93",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3282,
            "upload_time": "2024-04-22T08:30:45",
            "upload_time_iso_8601": "2024-04-22T08:30:45.270378Z",
            "url": "https://files.pythonhosted.org/packages/b2/14/2f0580a31a77d5c450bbbe802d371620cd67a9e7d82ef058b51494ef3459/jpscore-0.0.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "84c2678c2d31422893411e9d628154a061540a96df1931f3e7c248573f62c87a",
                "md5": "61a1e7d71151d9a9aa5e253f105da6a1",
                "sha256": "94d592aa5fceeabce09a82790b6a86e165e8c96511720f569c40533cf9ac6f4f"
            },
            "downloads": -1,
            "filename": "jpscore-0.0.9.tar.gz",
            "has_sig": false,
            "md5_digest": "61a1e7d71151d9a9aa5e253f105da6a1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3027,
            "upload_time": "2024-04-22T08:30:47",
            "upload_time_iso_8601": "2024-04-22T08:30:47.135107Z",
            "url": "https://files.pythonhosted.org/packages/84/c2/678c2d31422893411e9d628154a061540a96df1931f3e7c248573f62c87a/jpscore-0.0.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-22 08:30:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "y-takefuji",
    "github_project": "covid_score_japan",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "jpscore"
}
        
Elapsed time: 0.25756s