finddx / FINDCov19Tracker

https://dsbbfinddx.github.io/FINDCov19Tracker/
Other
0 stars 1 forks source link

switch to country_info_2.csv + replace country_iso with alpha3 #19

Closed benubah closed 3 years ago

benubah commented 3 years ago

This PR brings a few changes:

  1. Switch to the new file, country_info_2.csv . This file renames the country_iso column name to iso_alpha_2. This PR adjusts to this development.
  2. The use of iso2c is replaced with iso3c everywhere. This essentially solves the known problem of Namibia having its country code as NA - it now becomes NAM.
  3. The result of these changes will be noticeable in data_all.csv and unit_info.csv. i. For unit_info.csv , the unit column now has country codes with three characters (AFG for Afghanistan) instead two (AF). The country codes with two characters are now stored in iso_alpha_2. There is a new column who_region which contains WHO region classification. Screenshot is below.

image

ii. For `data_all.csv` a new `set` called `who_region` is added, and the `unit` now contains country codes with three characters (AFG for Afghanistan) instead of two (AF). Screenshot is shown below.

image