マイナンバーカード交付率のダッシュボード( https://mynumbercard.code4japan.org/ ) のソースコードです。
https://www.soumu.go.jp/kojinbango_card/
にある PDF、「マイナンバーカード交付状況について」から CSV データを抜き出し、CSV として保存しています。
This is a repository of a dashboard of the my number card statistics ( https://mynumbercard.code4japan.org/ ).
Extract and convert csv data from the PDF file under マイナンバーカード交付状況について on the https://www.soumu.go.jp/kojinbango_card/
Please install Docker and Docker Compose
git clone git@github.com:codeforjapan/mynumbercard_statistics.git
The download_and_conver
command will run the both download
and convert
commands below, at one time.
[notice] This command will take a long time when you run this command for the first time.
make download_and_convert
The download
command will download cvs data from PDF file.
[notice] This command will take a long time when you run this command first time.
make download
The download
script will skip files which are already downloaded. If you want to redownload all files, run download_all
.
make download_all
The conver
command will create csv files from downloaded data.
make convert
This command will create the following csv files under data/out/{YYYYMMDD}/
dir.
summary_by_types.csv
summary data by govenment types (団体区分別)all_prefectures.csv
the statistics of all prefectures (都道府県一覧)demographics.csv
the demographics data (男女・年齢別)all_localsgovs.csv
: the statistics of all local governments (基礎自治体)
GitHub Actions in this repository will create new data and publish the data to the gh-pages
branch.
.