Code Monkey home page Code Monkey logo

Comments (4)

Hayao0819 avatar Hayao0819 commented on June 5, 2024 1

ありがとうございますm(_ _)m

from covid19-japan-web-api.

ryo-ma avatar ryo-ma commented on June 5, 2024

ドキュメントの作成は未定ですが、元データ(https://github.com/swsoyee/2019-ncov-japan/blob/master/50_Data/MHLW/summary.csv) のカラム名とAPIのキー名は以下のような対応になっております。

https://github.com/ryo-ma/covid19-japan-web-api/blob/master/src/script/create_prefectures.py

        prefectures.append({'id': int(prefecture_df['id']),
                            'name_ja': prefecture,
                            'name_en': prefecture_df['name-en'],
                            'lat': float(prefecture_df['lat']),
                            'lng': float(prefecture_df['lng']),
                            'population': int(prefecture_df['pop']),
                            'last_updated': last_updated,
                            'cases': int(summary['陽性者']),
                            'deaths': int(summary['死亡者']),
                            'pcr': int(summary['検査人数']),
                            'hospitalize': int(summary['入院中']),
                            'severe': int(summary['重症者']),
                            'discharge': int(summary['退院者']),
                            'symptom_confirming': int(summary['確認中']),
                            })

元データでも日本語訳されていないカラム名の
lat,lngはlatitude、longitudeの略で緯度経度、
populationは人口のハズです。
last_updatedはそれぞれのデータの最終更新日を記載しています。

カラム名に関してさらに詳しく知りたい場合は元データの作者(https://github.com/swsoyee/2019-ncov-japan) に確認するのがいいと思います。

from covid19-japan-web-api.

Hayao0819 avatar Hayao0819 commented on June 5, 2024

ありがとうございます。
このアドレスからのキーは日本語訳が見つからないのですが、元データの作者様に問い合わせたほうが良いでしょうか?

from covid19-japan-web-api.

ryo-ma avatar ryo-ma commented on June 5, 2024

そのデータは以下のURLが元データとなっております。キー名は並び順に対応してます。
https://github.com/swsoyee/2019-ncov-japan/blob/master/50_Data/positiveDetail.csv

code', 'announcement_date', 'src', 'prefecture', 'residence_prefecture', 'age', 'gender', 'attribute', 'prefecture_number','travel_or_contact', 'detail', 'id', 'diagnosis_date', 'onset', 'symptom', 'death_or_discharge_date', 'comment', 'outcome', 'outcome_src'

コード,発表日,ソース,都道府県,居住地,年齢,性別,属性,県内No.,渡航・接触歴,詳細(渡航先、接触者、関与クラスター),ID,確定診断日(作業途中),発症日,"症状(0:無症状,1:軽症・中等症,2:重症(ICU、人工呼吸器),3:検>査時無症状)",死亡/退院日,コメント,"転帰(1:退院,2:死亡)",転帰ソース

ただ、positivesの元データの更新が8ヶ月前から止まっておりますのでご注意ください。

from covid19-japan-web-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.