diff --git a/scripts/world_bank/wdi/README.md b/scripts/world_bank/wdi/README.md index 7cda4df1b4..a50b2c82d6 100644 --- a/scripts/world_bank/wdi/README.md +++ b/scripts/world_bank/wdi/README.md @@ -127,6 +127,15 @@ To generate `output/WorldBank_StatisticalVariables.mcf`, python3 worldbank.py --indicatorSchemaFile= --fetchFromSource= ``` +#### Processing Steps for Refreshing Data + +To generate `output/WorldBank_StatisticalVariables.mcf`, +`output/WorldBank.tmcf`, and `output/WorldBank.csv`, run: + +```bash +python3 worldbank.py --indicatorSchemaFile=schema_csvs/WorldBankIndicators_prod.csv --fetchFromSource=true +``` + We highly recommend the use of the import validation tool for this import which you can find in https://github.com/datacommonsorg/tools/tree/master/import-validation-helper. diff --git a/scripts/world_bank/wdi/schema_csvs/WorldBankIndicators_prod.csv b/scripts/world_bank/wdi/schema_csvs/WorldBankIndicators_prod.csv index f377d0299a..898c1b5070 100644 --- a/scripts/world_bank/wdi/schema_csvs/WorldBankIndicators_prod.csv +++ b/scripts/world_bank/wdi/schema_csvs/WorldBankIndicators_prod.csv @@ -14,22 +14,22 @@ SE.TER.CUAT.ST.ZS,,,"Educational attainment, at least completed short-cycle tert SH.STA.OWGH.FE.ZS,,,"Prevalence of overweight, weight for height, female (% of children under 5)","Prevalence of overweight, female, is the percentage of girls under age 5 whose weight for height is more than two standard deviations above the median for the international reference population of the corresponding age as established by the WHO's new child growth standards released in 2006.","UNICEF, WHO, World Bank: Joint child malnutrition estimates (JME). Aggregation is based on UNICEF, WHO, and the World Bank harmonized dataset (adjusted, comparable data) and methodology.",Person,measuredValue,count,healthBehavior,Overweight,age,YearsUpto4,gender,Female,Count_Person_Upto4Years_Female,,100,, SH.STA.OWGH.MA.ZS,,,"Prevalence of overweight, weight for height, male (% of children under 5)","Prevalence of overweight, male, is the percentage of boys under age 5 whose weight for height is more than two standard deviations above the median for the international reference population of the corresponding age as established by the WHO's new child growth standards released in 2006.","UNICEF, WHO, World Bank: Joint child malnutrition estimates (JME). Aggregation is based on UNICEF, WHO, and the World Bank harmonized dataset (adjusted, comparable data) and methodology.",Person,measuredValue,count,healthBehavior,Overweight,age,YearsUpto4,gender,Male,Count_Person_Upto4Years_Male,,100,, SH.STA.OWGH.ZS,,,"Prevalence of overweight, weight for height (% of children under 5)",Prevalence of overweight children is the percentage of children under age 5 whose weight for height is more than two standard deviations above the median for the international reference population of the corresponding age as established by the WHO's new child growth standards released in 2006.,"UNICEF, WHO, World Bank: Joint child malnutrition estimates (JME). Aggregation is based on UNICEF, WHO, and the World Bank harmonized dataset (adjusted, comparable data) and methodology.",Person,measuredValue,count,healthBehavior,Overweight,age,YearsUpto4,,,Count_Person_Upto4Years,,100,, -SH.STA.SUIC.FE.P5,,,"Suicide mortality rate, female (per 100,000 female population)","Suicide mortality rate is the number of suicide deaths in a year per 100,000 population. Crude suicide rate (not age-adjusted).","World Health Organization, Global Health Observatory Data Repository (http://apps.who.int/ghodata/).",MortalityEvent,measuredValue,count,causeOfDeath,ICD10/X60-X84,gender,Female,,,Count_Person_Female,,,,Per100000Female -SH.STA.SUIC.MA.P5,,,"Suicide mortality rate, male (per 100,000 male population)","Suicide mortality rate is the number of suicide deaths in a year per 100,000 population. Crude suicide rate (not age-adjusted).","World Health Organization, Global Health Observatory Data Repository (http://apps.who.int/ghodata/).",MortalityEvent,measuredValue,count,causeOfDeath,ICD10/X60-X84,gender,Male,,,Count_Person_Male,,,,Per100000Male -SH.STA.SUIC.P5,,,"Suicide mortality rate (per 100,000 population)","Suicide mortality rate is the number of suicide deaths in a year per 100,000 population. Crude suicide rate (not age-adjusted).","World Health Organization, Global Health Observatory Data Repository (http://apps.who.int/ghodata/).",MortalityEvent,measuredValue,count,causeOfDeath,ICD10/X60-X84,,,,,Count_Person,,,,Per100000Person +SH.STA.SUIC.FE.P5,,,"Suicide mortality rate, female (per 100,000 female population)","Suicide mortality rate is the number of suicide deaths in a year per 100,000 population. Crude suicide rate (not age-adjusted).","World Health Organization, Global Health Observatory Data Repository (http://apps.who.int/ghodata/).",MortalityEvent,measuredValue,count,causeOfDeath,ICD10/X60-X84,gender,Female,,,Count_Person_Female,,,,Per100000Females +SH.STA.SUIC.MA.P5,,,"Suicide mortality rate, male (per 100,000 male population)","Suicide mortality rate is the number of suicide deaths in a year per 100,000 population. Crude suicide rate (not age-adjusted).","World Health Organization, Global Health Observatory Data Repository (http://apps.who.int/ghodata/).",MortalityEvent,measuredValue,count,causeOfDeath,ICD10/X60-X84,gender,Male,,,Count_Person_Male,,,,Per100000Males +SH.STA.SUIC.P5,,,"Suicide mortality rate (per 100,000 population)","Suicide mortality rate is the number of suicide deaths in a year per 100,000 population. Crude suicide rate (not age-adjusted).","World Health Organization, Global Health Observatory Data Repository (http://apps.who.int/ghodata/).",MortalityEvent,measuredValue,count,causeOfDeath,ICD10/X60-X84,,,,,Count_Person,,,,Per100000Persons SL.TLF.ACTI.FE.ZS,,,"Labor force participation rate, female (% of female population ages 15-64) (modeled ILO estimate)",Labor force participation rate is the proportion of the population ages 15-64 that is economically active: all people who supply labor for the production of goods and services during a specified period.,"International Labour Organization, ILOSTAT database. Data retrieved in March 1, 2020.",Person,measuredValue,count,age,Years15To64,employmentStatus,BLS_InLaborForce,gender,Female,Count_Person_15To64Years_Female,,100,, SL.TLF.ACTI.MA.ZS,,,"Labor force participation rate, male (% of male population ages 15-64) (modeled ILO estimate)",Labor force participation rate is the proportion of the population ages 15-64 that is economically active: all people who supply labor for the production of goods and services during a specified period.,"International Labour Organization, ILOSTAT database. Data retrieved in March 1, 2020.",Person,measuredValue,count,age,Years15To64,employmentStatus,BLS_InLaborForce,gender,Male,Count_Person_15To64Years_Male,,100,, SL.TLF.ACTI.ZS,,,"Labor force participation rate, total (% of total population ages 15-64) (modeled ILO estimate)",Labor force participation rate is the proportion of the population ages 15-64 that is economically active: all people who supply labor for the production of goods and services during a specified period.,"International Labour Organization, ILOSTAT database. Data retrieved in March 1, 2020.",Person,measuredValue,count,age,Years15To64,employmentStatus,BLS_InLaborForce,,,Count_Person_15To64Years,,100,, SL.TLF.TOTL.FE.ZS,,,"Labor force, female (% of total labor force)",Female labor force as a percentage of the total show the extent to which women are active in the labor force. Labor force comprises people ages 15 and older who supply labor for the production of goods and services during a specified period.,"Derived using data from International Labour Organization, ILOSTAT database. The data retrieved in March 1, 2020.",Person,measuredValue,count,age,Years15Onwards,gender,Female,employmentStatus,BLS_InLaborForce,Count_Person_InLaborForce,,100,, SL.TLF.TOTL.IN,TRUE,Count_Person_InLaborForce,"Labor force, total","Labor force comprises people ages 15 and older who supply labor for the production of goods and services during a specified period. It includes people who are currently employed and people who are unemployed but seeking work as well as first-time job-seekers. Not everyone who works is included, however. Unpaid workers, family workers, and students are often omitted, and some countries do not count members of the armed forces. Labor force size tends to vary during the year as seasonal workers enter and leave.","Derived using data from International Labour Organization, ILOSTAT database. The data retrieved in March 1, 2020.",Person,measuredValue,count,age,Years15Onwards,employmentStatus,BLS_InLaborForce,,,,,,dcs:InternationalLaborOrganization, -VC.IHR.PSRC.FE.P5,,,"Intentional homicides, female (per 100,000 female)","Intentional homicides, female are estimates of unlawful female homicides purposely inflicted as a result of domestic disputes, interpersonal violence, violent conflicts over land resources, intergang violence over turf or control, and predatory violence and killing by armed groups. Intentional homicide does not include all intentional killing; the difference is usually in the organization of the killing. Individuals or small groups usually commit homicide, whereas killing in armed conflict is usually committed by fairly cohesive groups of up to several hundred members and is thus usually excluded.",UN Office on Drugs and Crime's International Homicide Statistics database.,CriminalActivities,measuredValue,count,crimeType,MurderAndNonNegligentManslaughter,gender,Female,,,Count_Person_Female,,,,Per100000Female -VC.IHR.PSRC.MA.P5,,,"Intentional homicides, male (per 100,000 male)","Intentional homicides, male are estimates of unlawful male homicides purposely inflicted as a result of domestic disputes, interpersonal violence, violent conflicts over land resources, intergang violence over turf or control, and predatory violence and killing by armed groups. Intentional homicide does not include all intentional killing; the difference is usually in the organization of the killing. Individuals or small groups usually commit homicide, whereas killing in armed conflict is usually committed by fairly cohesive groups of up to several hundred members and is thus usually excluded.",,CriminalActivities,measuredValue,count,crimeType,MurderAndNonNegligentManslaughter,gender,Male,,,Count_Person_Male,,,,Per100000Male -VC.IHR.PSRC.P5,,,"Intentional homicides (per 100,000 people)","Intentional homicides are estimates of unlawful homicides purposely inflicted as a result of domestic disputes, interpersonal violence, violent conflicts over land resources, intergang violence over turf or control, and predatory violence and killing by armed groups. Intentional homicide does not include all intentional killing; the difference is usually in the organization of the killing. Individuals or small groups usually commit homicide, whereas killing in armed conflict is usually committed by fairly cohesive groups of up to several hundred members and is thus usually excluded.",UN Office on Drugs and Crime's International Homicide Statistics database.,CriminalActivities,measuredValue,count,crimeType,MurderAndNonNegligentManslaughter,,,,,Count_Person,,,,Per100000Person +VC.IHR.PSRC.FE.P5,,,"Intentional homicides, female (per 100,000 female)","Intentional homicides, female are estimates of unlawful female homicides purposely inflicted as a result of domestic disputes, interpersonal violence, violent conflicts over land resources, intergang violence over turf or control, and predatory violence and killing by armed groups. Intentional homicide does not include all intentional killing; the difference is usually in the organization of the killing. Individuals or small groups usually commit homicide, whereas killing in armed conflict is usually committed by fairly cohesive groups of up to several hundred members and is thus usually excluded.",UN Office on Drugs and Crime's International Homicide Statistics database.,CriminalActivities,measuredValue,count,crimeType,MurderAndNonNegligentManslaughter,gender,Female,,,Count_Person_Female,,,,Per100000Females +VC.IHR.PSRC.MA.P5,,,"Intentional homicides, male (per 100,000 male)","Intentional homicides, male are estimates of unlawful male homicides purposely inflicted as a result of domestic disputes, interpersonal violence, violent conflicts over land resources, intergang violence over turf or control, and predatory violence and killing by armed groups. Intentional homicide does not include all intentional killing; the difference is usually in the organization of the killing. Individuals or small groups usually commit homicide, whereas killing in armed conflict is usually committed by fairly cohesive groups of up to several hundred members and is thus usually excluded.",,CriminalActivities,measuredValue,count,crimeType,MurderAndNonNegligentManslaughter,gender,Male,,,Count_Person_Male,,,,Per100000Males +VC.IHR.PSRC.P5,,,"Intentional homicides (per 100,000 people)","Intentional homicides are estimates of unlawful homicides purposely inflicted as a result of domestic disputes, interpersonal violence, violent conflicts over land resources, intergang violence over turf or control, and predatory violence and killing by armed groups. Intentional homicide does not include all intentional killing; the difference is usually in the organization of the killing. Individuals or small groups usually commit homicide, whereas killing in armed conflict is usually committed by fairly cohesive groups of up to several hundred members and is thus usually excluded.",UN Office on Drugs and Crime's International Homicide Statistics database.,CriminalActivities,measuredValue,count,crimeType,MurderAndNonNegligentManslaughter,,,,,Count_Person,,,,Per100000Persons SP.RUR.TOTL,,,Rural population,Rural population refers to people living in rural areas as defined by national statistical offices. It is calculated as the difference between total population and urban population. Aggregation of urban and rural population may not add up to total population because of different country coverages.,World Bank staff estimates based on the United Nations Population Division's World Urbanization Prospects: 2018 Revision.,Person,measuredValue,count,placeOfResidenceClassification,Rural,,,,,,,,WorldBankEstimate, SP.URB.TOTL,,,Urban population,Urban population refers to people living in urban areas as defined by national statistical offices. It is calculated using World Bank population estimates and urban ratios from the United Nations World Urbanization Prospects. Aggregation of urban and rural population may not add up to total population because of different country coverages.,World Bank staff estimates based on the United Nations Population Division's World Urbanization Prospects: 2018 Revision.,Person,measuredValue,count,placeOfResidenceClassification,Urban,,,,,,,,WorldBankEstimate, -SP.DYN.IMRT.IN,,,"Mortality rate, infant (per 1,000 live births)","Infant mortality rate is the number of infants dying before reaching one year of age, per 1,000 live births in a given year.","Estimates developed by the UN Inter-agency Group for Child Mortality Estimation (UNICEF, WHO, World Bank, UN DESA Population Division) at www.childmortality.org.",MortalityEvent,measuredValue,count,age,Years0,,,,,Count_BirthEvent_LiveBirth,,,UnitedNationsIGMEEstimate,Per1000LiveBirth -SP.DYN.IMRT.MA.IN,,,"Mortality rate, infant, male (per 1,000 live births)","Infant mortality rate, male is the number of male infants dying before reaching one year of age, per 1,000 male live births in a given year.","Estimates developed by the UN Inter-agency Group for Child Mortality Estimation (UNICEF, WHO, World Bank, UN DESA Population Division) at www.childmortality.org.",MortalityEvent,measuredValue,count,age,Years0,gender,Male,,,Count_BirthEvent_LiveBirth_Male,,,UnitedNationsIGMEEstimate,Per1000LiveBirthMale -SP.DYN.IMRT.FE.IN,,,"Mortality rate, infant, female (per 1,000 live births)","Infant mortality rate, female is the number of female infants dying before reaching one year of age, per 1,000 female live births in a given year.","Estimates developed by the UN Inter-agency Group for Child Mortality Estimation (UNICEF, WHO, World Bank, UN DESA Population Division) at www.childmortality.org.",MortalityEvent,measuredValue,count,age,Years0,gender,Female,,,Count_BirthEvent_LiveBirth_Female,,,UnitedNationsIGMEEstimate,Per1000LiveBirthFemale +SP.DYN.IMRT.IN,,,"Mortality rate, infant (per 1,000 live births)","Infant mortality rate is the number of infants dying before reaching one year of age, per 1,000 live births in a given year.","Estimates developed by the UN Inter-agency Group for Child Mortality Estimation (UNICEF, WHO, World Bank, UN DESA Population Division) at www.childmortality.org.",MortalityEvent,measuredValue,count,age,Years0,,,,,Count_BirthEvent_LiveBirth,,,UnitedNationsIGMEEstimate,Per1000LiveBirths +SP.DYN.IMRT.MA.IN,,,"Mortality rate, infant, male (per 1,000 live births)","Infant mortality rate, male is the number of male infants dying before reaching one year of age, per 1,000 male live births in a given year.","Estimates developed by the UN Inter-agency Group for Child Mortality Estimation (UNICEF, WHO, World Bank, UN DESA Population Division) at www.childmortality.org.",MortalityEvent,measuredValue,count,age,Years0,gender,Male,,,Count_BirthEvent_LiveBirth_Male,,,UnitedNationsIGMEEstimate,Per1000MaleLiveBirths +SP.DYN.IMRT.FE.IN,,,"Mortality rate, infant, female (per 1,000 live births)","Infant mortality rate, female is the number of female infants dying before reaching one year of age, per 1,000 female live births in a given year.","Estimates developed by the UN Inter-agency Group for Child Mortality Estimation (UNICEF, WHO, World Bank, UN DESA Population Division) at www.childmortality.org.",MortalityEvent,measuredValue,count,age,Years0,gender,Female,,,Count_BirthEvent_LiveBirth_Female,,,UnitedNationsIGMEEstimate,Per1000FemaleLiveBirths SH.DTH.IMRT,,,Number of infant deaths,Number of infants dying before reaching one year of age.,"Estimates developed by the UN Inter-agency Group for Child Mortality Estimation (UNICEF, WHO, World Bank, UN DESA Population Division) at www.childmortality.org.",MortalityEvent,measuredValue,count,age,Years0,,,,,,,,UnitedNationsIGMEEstimate, SL.TLF.0714.ZS,,,"Children in employment, total (% of children ages 7-14)",Children in employment refer to children involved in economic activity for at least one hour in the reference week of the survey.,"Understanding Children's Work project based on data from ILO, UNICEF and the World Bank.",Person,measuredValue,count,age,Years7To14,employment,Employed,,,Count_Person_7To14Years,100,,, SL.TLF.0714.MA.ZS,,,"Children in employment, male (% of male children ages 7-14)",Children in employment refer to children involved in economic activity for at least one hour in the reference week of the survey.,"Understanding Children's Work project based on data from ILO, UNICEF and the World Bank.",Person,measuredValue,count,age,Years7To14,employment,Employed,gender,Male,Count_Person_7To14Years_Male,100,,, @@ -53,14 +53,14 @@ CM.MKT.LCAP.CD,,,Market capitalization of listed domestic companies (current US$ BX.TRF.PWKR.DT.GD.ZS,,,"Personal remittances, received (% of GDP)","Personal remittances comprise personal transfers and compensation of employees. Personal transfers consist of all current transfers in cash or in kind made or received by resident households to or from nonresident households. Personal transfers thus include all current transfers between resident and nonresident individuals. Compensation of employees refers to the income of border, seasonal, and other short-term workers who are employed in an economy where they are not resident and of residents employed by nonresident entities. Data are the sum of two items defined in the sixth edition of the IMF's Balance of Payments Manual: personal transfers and compensation of employees.","World Bank staff estimates based on IMF balance of payments data, and World Bank and OECD GDP estimates.",Remittance,measuredValue,amount,transferType,InwardRemittance,,,,,Amount_EconomicActivity_GrossDomesticProduction_Nominal,100,,WorldBankEstimate, BX.TRF.PWKR.CD.DT,,,"Personal remittances, received (current US$)","Personal remittances comprise personal transfers and compensation of employees. Personal transfers consist of all current transfers in cash or in kind made or received by resident households to or from nonresident households. Personal transfers thus include all current transfers between resident and nonresident individuals. Compensation of employees refers to the income of border, seasonal, and other short-term workers who are employed in an economy where they are not resident and of residents employed by nonresident entities. Data are the sum of two items defined in the sixth edition of the IMF's Balance of Payments Manual: personal transfers and compensation of employees. Data are in current U.S. dollars.",World Bank staff estimates based on IMF balance of payments data.,Remittance,measuredValue,amount,transferType,InwardRemittance,,,,,,,,WorldBankEstimate,USDollar BM.TRF.PWKR.CD.DT,,,"Personal remittances, paid (current US$)","Personal remittances comprise personal transfers and compensation of employees. Personal transfers consist of all current transfers in cash or in kind made or received by resident households to or from nonresident households. Personal transfers thus include all current transfers between resident and nonresident individuals. Compensation of employees refers to the income of border, seasonal, and other short-term workers who are employed in an economy where they are not resident and of residents employed by nonresident entities. Data are the sum of two items defined in the sixth edition of the IMF's Balance of Payments Manual: personal transfers and compensation of employees. Data are in current U.S. dollars.","World Bank staff estimates based on IMF balance of payments data, and World Bank and OECD GDP estimates.",Remittance,measuredValue,amount,transferType,OutwardRemittance,,,,,,,,WorldBankEstimate,USDollar -VC.IHR.PSRC.P5,,,"Intentional homicides (per 100,000 people)","Intentional homicides are estimates of unlawful homicides purposely inflicted as a result of domestic disputes, interpersonal violence, violent conflicts over land resources, intergang violence over turf or control, and predatory violence and killing by armed groups. Intentional homicide does not include all intentional killing; the difference is usually in the organization of the killing. Individuals or small groups usually commit homicide, whereas killing in armed conflict is usually committed by fairly cohesive groups of up to several hundred members and is thus usually excluded.",UN Office on Drugs and Crime's International Homicide Statistics database.,CriminalActivities,measuredValue,count,crimeType,MurderAndNonNegligentManslaughter,,,,,Count_Person,,,,Per100000Person -SH.DYN.MORT,,,"Mortality rate, under-5 (per 1,000 live births)","Under-five mortality rate is the probability per 1,000 that a newborn baby will die before reaching age five, if subject to age-specific mortality rates of the specified year.","Estimates Developed by the UN Inter-agency Group for Child Mortality Estimation (UNICEF, WHO, World Bank, UN DESA Population Division) at www.childmortality.org.",Person,measuredValue,mortalityRate,age,YearsUpto4,,,,,Count_BirthEvent_LiveBirth,,,,Per1000LiveBirth +VC.IHR.PSRC.P5,,,"Intentional homicides (per 100,000 people)","Intentional homicides are estimates of unlawful homicides purposely inflicted as a result of domestic disputes, interpersonal violence, violent conflicts over land resources, intergang violence over turf or control, and predatory violence and killing by armed groups. Intentional homicide does not include all intentional killing; the difference is usually in the organization of the killing. Individuals or small groups usually commit homicide, whereas killing in armed conflict is usually committed by fairly cohesive groups of up to several hundred members and is thus usually excluded.",UN Office on Drugs and Crime's International Homicide Statistics database.,CriminalActivities,measuredValue,count,crimeType,MurderAndNonNegligentManslaughter,,,,,Count_Person,,,,Per100000Persons +SH.DYN.MORT,,,"Mortality rate, under-5 (per 1,000 live births)","Under-five mortality rate is the probability per 1,000 that a newborn baby will die before reaching age five, if subject to age-specific mortality rates of the specified year.","Estimates Developed by the UN Inter-agency Group for Child Mortality Estimation (UNICEF, WHO, World Bank, UN DESA Population Division) at www.childmortality.org.",Person,measuredValue,mortalityRate,age,YearsUpto4,,,,,Count_BirthEvent_LiveBirth,,,,Per1000LiveBirths SH.PRV.SMOK,,,"Smoking prevalence, total (ages 15+)",Prevalence of smoking is the percentage of men and women ages 15 and over who currently smoke any tobacco product on a daily or non-daily basis. It excludes smokeless tobacco use. The rates are age-standardized.,"World Health Organization, Global Health Observatory Data Repository (http://apps.who.int/ghodata/).",Person,measuredValue,count,healthBehavior,Smoking,age,Years15Onwards,,,Count_Person_15OrMoreYears,,100,dcs:AgeAdjustedPrevalence, SH.PRV.SMOK.FE,,,"Smoking prevalence, females (% of adults)","Prevalence of smoking, female is the percentage of women ages 15 and over who currently smoke any tobacco product on a daily or non-daily basis. It excludes smokeless tobacco use. The rates are age-standardized.","World Health Organization, Global Health Observatory Data Repository (http://apps.who.int/ghodata/).",Person,measuredValue,count,healthBehavior,Smoking,age,Years15Onwards,gender,Female,Count_Person_15OrMoreYears_Female,,100,dcs:AgeAdjustedPrevalence, SH.PRV.SMOK.MA,,,"Smoking prevalence, males (% of adults)","Prevalence of smoking, male is the percentage of men ages 15 and over who currently smoke any tobacco product on a daily or non-daily basis. It excludes smokeless tobacco use. The rates are age-standardized.","World Health Organization, Global Health Observatory Data Repository (http://apps.who.int/ghodata/).",Person,measuredValue,count,healthBehavior,Smoking,age,Years15Onwards,gender,Male,Count_Person_15OrMoreYears_Male,,100,dcs:AgeAdjustedPrevalence, SH.STA.DIAB.ZS,,,Diabetes prevalence (% of population ages 20 to 79),Diabetes prevalence refers to the percentage of people ages 20-79 who have type 1 or type 2 diabetes.,"International Diabetes Federation, Diabetes Atlas.",Person,measuredValue,count,healthOutcome,Diabetes,age,Years20To79,,,Count_Person_20To79Years,,100,, -SP.DYN.CBRT.IN,,,"Birth rate, crude (per 1,000 people)","Crude birth rate indicates the number of live births occurring during the year, per 1,000 population estimated at midyear. Subtracting the crude death rate from the crude birth rate provides the rate of natural increase, which is equal to the rate of population change in the absence of migration.","(1) United Nations Population Division. World Population Prospects: 2019 Revision. (2) Census reports and other statistical publications from national statistical offices, (3) Eurostat: Demographic Statistics, (4) United Nations Statistical Division. Population and Vital Statistics Report (various years), (5) U.S. Census Bureau: International Database, and (6) Secretariat of the Pacific Community: Statistics and Demography Programme.",BirthEvent,measuredValue,count,medicalStatus,LiveBirth,,,,,Count_Person,,,,Per1000Person -SP.DYN.CDRT.IN,,Count_Death_AsAFractionOfCount_Person,"Death rate, crude (per 1,000 people)","Crude death rate indicates the number of deaths occurring during the year, per 1,000 population estimated at midyear. Subtracting the crude death rate from the crude birth rate provides the rate of natural increase, which is equal to the rate of population change in the absence of migration.","(1) United Nations Population Division. World Population Prospects: 2019 Revision. (2) Census reports and other statistical publications from national statistical offices, (3) Eurostat: Demographic Statistics, (4) United Nations Statistical Division. Population and Vital Statistics Report (various years), (5) U.S. Census Bureau: International Database, and (6) Secretariat of the Pacific Community: Statistics and Demography Programme.",MortalityEvent,measuredValue,count,,,,,,,Count_Person,,,dcs:WorldBankWeightedAverage,Per1000Person +SP.DYN.CBRT.IN,,,"Birth rate, crude (per 1,000 people)","Crude birth rate indicates the number of live births occurring during the year, per 1,000 population estimated at midyear. Subtracting the crude death rate from the crude birth rate provides the rate of natural increase, which is equal to the rate of population change in the absence of migration.","(1) United Nations Population Division. World Population Prospects: 2019 Revision. (2) Census reports and other statistical publications from national statistical offices, (3) Eurostat: Demographic Statistics, (4) United Nations Statistical Division. Population and Vital Statistics Report (various years), (5) U.S. Census Bureau: International Database, and (6) Secretariat of the Pacific Community: Statistics and Demography Programme.",BirthEvent,measuredValue,count,medicalStatus,LiveBirth,,,,,Count_Person,,,,Per1000Persons +SP.DYN.CDRT.IN,,Count_Death_AsAFractionOfCount_Person,"Death rate, crude (per 1,000 people)","Crude death rate indicates the number of deaths occurring during the year, per 1,000 population estimated at midyear. Subtracting the crude death rate from the crude birth rate provides the rate of natural increase, which is equal to the rate of population change in the absence of migration.","(1) United Nations Population Division. World Population Prospects: 2019 Revision. (2) Census reports and other statistical publications from national statistical offices, (3) Eurostat: Demographic Statistics, (4) United Nations Statistical Division. Population and Vital Statistics Report (various years), (5) U.S. Census Bureau: International Database, and (6) Secretariat of the Pacific Community: Statistics and Demography Programme.",MortalityEvent,measuredValue,count,,,,,,,Count_Person,,,dcs:WorldBankWeightedAverage,Per1000Persons SP.DYN.LE00.FE.IN,,,"Life expectancy at birth, female (years)",Life expectancy at birth indicates the number of years a newborn infant would live if prevailing patterns of mortality at the time of its birth were to stay the same throughout its life.,"(1) United Nations Population Division. World Population Prospects: 2019 Revision. (2) Census reports and other statistical publications from national statistical offices, (3) Eurostat: Demographic Statistics, (4) United Nations Statistical Division. Population and Vital Statistics Report (various years), (5) U.S. Census Bureau: International Database, and (6) Secretariat of the Pacific Community: Statistics and Demography Programme.",Person,measuredValue,lifeExpectancy,gender,Female,,,,,,,,,Year SP.DYN.LE00.MA.IN,,,"Life expectancy at birth, male (years)",Life expectancy at birth indicates the number of years a newborn infant would live if prevailing patterns of mortality at the time of its birth were to stay the same throughout its life.,"(1) United Nations Population Division. World Population Prospects: 2019 Revision. (2) Census reports and other statistical publications from national statistical offices, (3) Eurostat: Demographic Statistics, (4) United Nations Statistical Division. Population and Vital Statistics Report (various years), (5) U.S. Census Bureau: International Database, and (6) Secretariat of the Pacific Community: Statistics and Demography Programme.",Person,measuredValue,lifeExpectancy,gender,Male,,,,,,,,,Year EG.ELC.FOSL.ZS,,,"Electricity production from oil, gas and coal sources (% of total)","Sources of electricity refer to the inputs used to generate electricity. Oil refers to crude oil and petroleum products. Gas refers to natural gas but excludes natural gas liquids. Coal refers to all coal and brown coal, both primary (including hard coal and lignite-brown coal) and derived fuels (including patent fuel, coke oven coke, gas coke, coke oven gas, and blast furnace gas). Peat is also included in this category.","IEA Statistics OECD/IEA 2014 (http://www.iea.org/stats/index.asp), subject to https://www.iea.org/t&c/termsandconditions/",Production,measuredValue,amount,producedThing,ElectricityFromOilGasOrCoalSources,,,,,Amount_Production_Energy,,100,, diff --git a/scripts/world_bank/wdi/worldbank.py b/scripts/world_bank/wdi/worldbank.py index 00cad198f9..41381931b3 100644 --- a/scripts/world_bank/wdi/worldbank.py +++ b/scripts/world_bank/wdi/worldbank.py @@ -63,6 +63,145 @@ {CONSTRAINTS} """ +RESOLUTION_TO_EXISTING_DCID = { + 'dcs:WorldBank/SE_TER_CUAT_BA_FE_ZS': + 'Count_Person_25OrMoreYears_Female_BachelorsDegreeOrHigher_AsFractionOf_Count_Person_25OrMoreYears_Female', + 'dcs:WorldBank/SE_TER_CUAT_BA_MA_ZS': + 'Count_Person_25OrMoreYears_Male_BachelorsDegreeOrHigher_AsFractionOf_Count_Person_25OrMoreYears_Male', + 'dcs:WorldBank/SE_TER_CUAT_BA_ZS': + 'Count_Person_25OrMoreYears_BachelorsDegreeOrHigher_AsFractionOf_Count_Person_25OrMoreYears', + 'dcs:WorldBank/SE_TER_CUAT_DO_FE_ZS': + 'Count_Person_25OrMoreYears_Female_DoctorateDegree_AsFractionOf_Count_Person_25OrMoreYears_Female', + 'dcs:WorldBank/SE_TER_CUAT_DO_MA_ZS': + 'Count_Person_25OrMoreYears_Male_DoctorateDegree_AsFractionOf_Count_Person_25OrMoreYears_Male', + 'dcs:WorldBank/SE_TER_CUAT_DO_ZS': + 'Count_Person_25OrMoreYears_DoctorateDegree_AsFractionOf_Count_Person_25OrMoreYears', + 'dcs:WorldBank/SE_TER_CUAT_MS_FE_ZS': + 'Count_Person_25OrMoreYears_Female_MastersDegreeOrHigher_AsFractionOf_Count_Person_25OrMoreYears_Female', + 'dcs:WorldBank/SE_TER_CUAT_MS_MA_ZS': + 'Count_Person_25OrMoreYears_Male_MastersDegreeOrHigher_AsFractionOf_Count_Person_25OrMoreYears_Male', + 'dcs:WorldBank/SE_TER_CUAT_MS_ZS': + 'Count_Person_25OrMoreYears_MastersDegreeOrHigher_AsFractionOf_Count_Person_25OrMoreYears', + 'dcs:WorldBank/SE_TER_CUAT_ST_FE_ZS': + 'Count_Person_25OrMoreYears_Female_TertiaryEducation_AsFractionOf_Count_Person_25OrMoreYears_Female', + 'dcs:WorldBank/SE_TER_CUAT_ST_MA_ZS': + 'Count_Person_25OrMoreYears_Male_TertiaryEducation_AsFractionOf_Count_Person_25OrMoreYears_Male', + 'dcs:WorldBank/SE_TER_CUAT_ST_ZS': + 'Count_Person_25OrMoreYears_TertiaryEducation_AsFractionOf_Count_Person_25OrMoreYears', + 'dcs:WorldBank/SH_STA_OWGH_FE_ZS': + 'Count_Person_Upto4Years_Female_Overweight_AsFractionOf_Count_Person_Upto4Years_Female', + 'dcs:WorldBank/SH_STA_OWGH_MA_ZS': + 'Count_Person_Upto4Years_Male_Overweight_AsFractionOf_Count_Person_Upto4Years_Male', + 'dcs:WorldBank/SH_STA_OWGH_ZS': + 'Count_Person_Upto4Years_Overweight_AsFractionOf_Count_Person_Upto4Years', + 'dcs:WorldBank/SH_STA_SUIC_FE_P5': + 'Count_Death_IntentionalSelfHarm_Female_AsFractionOf_Count_Person_Female', + 'dcs:WorldBank/SH_STA_SUIC_MA_P5': + 'Count_Death_IntentionalSelfHarm_Male_AsFractionOf_Count_Person_Male', + 'dcs:WorldBank/SH_STA_SUIC_P5': + 'Count_Death_IntentionalSelfHarm_AsFractionOf_Count_Person', + 'dcs:WorldBank/SL_TLF_ACTI_FE_ZS': + 'Count_Person_15To64Years_Female_InLaborForce_AsFractionOf_Count_Person_15To64Years_Female', + 'dcs:WorldBank/SL_TLF_ACTI_MA_ZS': + 'Count_Person_15To64Years_Male_InLaborForce_AsFractionOf_Count_Person_15To64Years_Male', + 'dcs:WorldBank/SL_TLF_ACTI_ZS': + 'Count_Person_15To64Years_InLaborForce_AsFractionOf_Count_Person_15To64Years', + 'dcs:WorldBank/SL_TLF_TOTL_FE_ZS': + 'Count_Person_15OrMoreYears_InLaborForce_Female_AsFractionOf_Count_Person_InLaborForce', + 'dcs:WorldBank/VC_IHR_PSRC_FE_P5': + 'Count_CriminalActivities_MurderAndNonNegligentManslaughter_Female_AsFractionOf_Count_Person_Female', + 'dcs:WorldBank/VC_IHR_PSRC_MA_P5': + 'Count_CriminalActivities_MurderAndNonNegligentManslaughter_Male_AsFractionOf_Count_Person_Male', + 'dcs:WorldBank/VC_IHR_PSRC_P5': + 'Count_CriminalActivities_MurderAndNonNegligentManslaughter_AsFractionOf_Count_Person', + 'dcs:WorldBank/SP_RUR_TOTL': + 'Count_Person_Rural', + 'dcs:WorldBank/SP_URB_TOTL': + 'Count_Person_Urban', + 'dcs:WorldBank/SP_DYN_IMRT_IN': + 'Count_Death_0Years_AsFractionOf_Count_BirthEvent_LiveBirth', + 'dcs:WorldBank/SP_DYN_IMRT_MA_IN': + 'Count_Death_0Years_Male_AsFractionOf_Count_BirthEvent_LiveBirth_Male', + 'dcs:WorldBank/SP_DYN_IMRT_FE_IN': + 'Count_Death_0Years_Female_AsFractionOf_Count_BirthEvent_LiveBirth_Female', + 'dcs:WorldBank/SH_DTH_IMRT': + 'Count_Death_0Years', + 'dcs:WorldBank/SL_TLF_0714_ZS': + 'Count_Person_7To14Years_Employed_AsFractionOf_Count_Person_7To14Years', + 'dcs:WorldBank/SL_TLF_0714_MA_ZS': + 'Count_Person_7To14Years_Male_Employed_AsFractionOf_Count_Person_7To14Years_Male', + 'dcs:WorldBank/SL_TLF_0714_FE_ZS': + 'Count_Person_7To14Years_Female_Employed_AsFractionOf_Count_Person_7To14Years_Female', + 'dcs:WorldBank/SH_SVR_WAST_ZS': + 'Count_Person_Upto4Years_SevereWasting_AsFractionOf_Count_Person_Upto4Years', + 'dcs:WorldBank/SH_SVR_WAST_MA_ZS': + 'Count_Person_Upto4Years_Male_SevereWasting_AsFractionOf_Count_Person_Upto4Years_Male', + 'dcs:WorldBank/SH_SVR_WAST_FE_ZS': + 'Count_Person_Upto4Years_Female_SevereWasting_AsFractionOf_Count_Person_Upto4Years_Female', + 'dcs:WorldBank/SH_STA_WAST_ZS': + 'Count_Person_Upto4Years_Wasting_AsFractionOf_Count_Person_Upto4Years', + 'dcs:WorldBank/SH_STA_WAST_MA_ZS': + 'Count_Person_Upto4Years_Male_Wasting_AsFractionOf_Count_Person_Upto4Years_Male', + 'dcs:WorldBank/SH_STA_WAST_FE_ZS': + 'Count_Person_Upto4Years_Female_Wasting_AsFractionOf_Count_Person_Upto4Years_Female', + 'dcs:WorldBank/SH_XPD_CHEX_PC_CD': + 'Amount_EconomicActivity_ExpenditureActivity_HealthcareExpenditure_AsFractionOf_Count_Person', + 'dcs:WorldBank/SH_ALC_PCAP_LI': + 'Amount_Consumption_Alcohol_15OrMoreYears_AsFractionOf_Count_Person_15OrMoreYears', + 'dcs:WorldBank/SI_POV_GINI': + 'GiniIndex_EconomicActivity', + 'dcs:WorldBank/SE_XPD_TOTL_GB_ZS': + 'Amount_EconomicActivity_ExpenditureActivity_EducationExpenditure_Government_AsFractionOf_Amount_EconomicActivity_ExpenditureActivity_Government', + 'dcs:WorldBank/SE_XPD_TOTL_GD_ZS': + 'Amount_EconomicActivity_ExpenditureActivity_EducationExpenditure_Government_AsFractionOf_Amount_EconomicActivity_GrossDomesticProduction_Nominal', + 'dcs:WorldBank/MS_MIL_XPND_CD': + 'Amount_EconomicActivity_ExpenditureActivity_MilitaryExpenditure_Government', + 'dcs:WorldBank/MS_MIL_XPND_GD_ZS': + 'Amount_EconomicActivity_ExpenditureActivity_MilitaryExpenditure_Government_AsFractionOf_Amount_EconomicActivity_GrossDomesticProduction_Nominal', + 'dcs:WorldBank/CM_MKT_LCAP_GD_ZS': + 'Amount_Stock_AsFractionOf_Amount_EconomicActivity_GrossDomesticProduction_Nominal', + 'dcs:WorldBank/CM_MKT_LCAP_CD': + 'Amount_Stock', + 'dcs:WorldBank/BX_TRF_PWKR_DT_GD_ZS': + 'Amount_Remittance_InwardRemittance_AsFractionOf_Amount_EconomicActivity_GrossDomesticProduction_Nominal', + 'dcs:WorldBank/BX_TRF_PWKR_CD_DT': + 'Amount_Remittance_InwardRemittance', + 'dcs:WorldBank/BM_TRF_PWKR_CD_DT': + 'Amount_Remittance_OutwardRemittance', + 'dcs:WorldBank/SH_DYN_MORT': + 'MortalityRate_Person_Upto4Years_AsFractionOf_Count_BirthEvent_LiveBirth', + 'dcs:WorldBank/SH_PRV_SMOK': + 'Count_Person_15OrMoreYears_Smoking_AsFractionOf_Count_Person_15OrMoreYears', + 'dcs:WorldBank/SH_PRV_SMOK_FE': + 'Count_Person_15OrMoreYears_Female_Smoking_AsFractionOf_Count_Person_15OrMoreYears_Female', + 'dcs:WorldBank/SH_PRV_SMOK_MA': + 'Count_Person_15OrMoreYears_Male_Smoking_AsFractionOf_Count_Person_15OrMoreYears_Male', + 'dcs:WorldBank/SH_STA_DIAB_ZS': + 'Count_Person_20To79Years_Diabetes_AsFractionOf_Count_Person_20To79Years', + 'dcs:WorldBank/SP_DYN_CBRT_IN': + 'Count_BirthEvent_LiveBirth_AsFractionOf_Count_Person', + 'dcs:WorldBank/SP_DYN_LE00_FE_IN': + 'LifeExpectancy_Person_Female', + 'dcs:WorldBank/SP_DYN_LE00_MA_IN': + 'LifeExpectancy_Person_Male', + 'dcs:WorldBank/EG_ELC_FOSL_ZS': + 'Amount_Production_ElectricityFromOilGasOrCoalSources_AsFractionOf_Amount_Production_Energy', + 'dcs:WorldBank/EG_ELC_NUCL_ZS': + 'Amount_Production_ElectricityFromNuclearSources_AsFractionOf_Amount_Production_Energy', + 'dcs:WorldBank/EG_FEC_RNEW_ZS': + 'Amount_Consumption_RenewableEnergy_AsFractionOf_Amount_Consumption_Energy', + 'dcs:WorldBank/EN_POP_EL5M_ZS': + 'Count_Person_ResidingLessThan5MetersAboveSeaLevel_AsFractionOf_Count_Person', + 'dcs:WorldBank/IT_CEL_SETS_P2': + 'Count_Product_MobileCellularSubscription_AsFractionOf_Count_Person', + 'dcs:WorldBank/SE_XPD_TERT_ZS': + 'Amount_EconomicActivity_ExpenditureActivity_TertiaryEducationExpenditure_Government_AsFractionOf_Amount_EconomicActivity_ExpenditureActivity_EducationExpenditure_Government', + 'dcs:WorldBank/SH_XPD_CHEX_PP_CD': + 'Amount_EconomicActivity_ExpenditureActivity_HealthcareExpenditure_AsFractionOf_Count_Person', + 'dcs:WorldBank/SH_XPD_CHEX_PC_CD': + 'Amount_EconomicActivity_ExpenditureActivity_HealthcareExpenditure_AsFractionOf_Count_Person' +} + def read_worldbank(iso3166alpha3, fetchFromSource): """ Fetches and tidies all ~1500 World Bank indicators @@ -207,7 +346,7 @@ def group_stat_vars_by_observation_properties(indicator_codes): """ # All the statistical observation properties that we included. properties_of_stat_var_observation = ([ - 'measurementMethod', 'scalingFactor','unit' + 'measurementMethod', 'scalingFactor', 'unit' ]) # List of tuples to return. tmcfs_for_stat_vars = [] @@ -331,77 +470,8 @@ def output_csv_and_tmcf_by_grouping(worldbank_dataframe, tmcfs_for_stat_vars, # Coverting dcid to existing dcid df['StatisticalVariable'] = df['StatisticalVariable'].astype(str) - resolution_to_existing_dcid = { - 'dcs:WorldBank/SE_TER_CUAT_BA_FE_ZS': 'Count_Person_25OrMoreYears_Female_BachelorsDegreeOrHigher_AsFractionOf_Count_Person_25OrMoreYears_Female', - 'dcs:WorldBank/SE_TER_CUAT_BA_MA_ZS': 'Count_Person_25OrMoreYears_Male_BachelorsDegreeOrHigher_AsFractionOf_Count_Person_25OrMoreYears_Male', - 'dcs:WorldBank/SE_TER_CUAT_BA_ZS': 'Count_Person_25OrMoreYears_BachelorsDegreeOrHigher_AsFractionOf_Count_Person_25OrMoreYears', - 'dcs:WorldBank/SE_TER_CUAT_DO_FE_ZS': 'Count_Person_25OrMoreYears_Female_DoctorateDegree_AsFractionOf_Count_Person_25OrMoreYears_Female', - 'dcs:WorldBank/SE_TER_CUAT_DO_MA_ZS': 'Count_Person_25OrMoreYears_Male_DoctorateDegree_AsFractionOf_Count_Person_25OrMoreYears_Male', - 'dcs:WorldBank/SE_TER_CUAT_DO_ZS': 'Count_Person_25OrMoreYears_DoctorateDegree_AsFractionOf_Count_Person_25OrMoreYears', - 'dcs:WorldBank/SE_TER_CUAT_MS_FE_ZS': 'Count_Person_25OrMoreYears_Female_MastersDegreeOrHigher_AsFractionOf_Count_Person_25OrMoreYears_Female', - 'dcs:WorldBank/SE_TER_CUAT_MS_MA_ZS': 'Count_Person_25OrMoreYears_Male_MastersDegreeOrHigher_AsFractionOf_Count_Person_25OrMoreYears_Male', - 'dcs:WorldBank/SE_TER_CUAT_MS_ZS': 'Count_Person_25OrMoreYears_MastersDegreeOrHigher_AsFractionOf_Count_Person_25OrMoreYears', - 'dcs:WorldBank/SE_TER_CUAT_ST_FE_ZS': 'Count_Person_25OrMoreYears_Female_TertiaryEducation_AsFractionOf_Count_Person_25OrMoreYears_Female', - 'dcs:WorldBank/SE_TER_CUAT_ST_MA_ZS': 'Count_Person_25OrMoreYears_Male_TertiaryEducation_AsFractionOf_Count_Person_25OrMoreYears_Male', - 'dcs:WorldBank/SE_TER_CUAT_ST_ZS': 'Count_Person_25OrMoreYears_TertiaryEducation_AsFractionOf_Count_Person_25OrMoreYears', - 'dcs:WorldBank/SH_STA_OWGH_FE_ZS': 'Count_Person_Upto4Years_Female_Overweight_AsFractionOf_Count_Person_Upto4Years_Female', - 'dcs:WorldBank/SH_STA_OWGH_MA_ZS': 'Count_Person_Upto4Years_Male_Overweight_AsFractionOf_Count_Person_Upto4Years_Male', - 'dcs:WorldBank/SH_STA_OWGH_ZS': 'Count_Person_Upto4Years_Overweight_AsFractionOf_Count_Person_Upto4Years', - 'dcs:WorldBank/SH_STA_SUIC_FE_P5': 'Count_Death_IntentionalSelfHarm_Female_AsFractionOf_Count_Person_Female', - 'dcs:WorldBank/SH_STA_SUIC_MA_P5': 'Count_Death_IntentionalSelfHarm_Male_AsFractionOf_Count_Person_Male', - 'dcs:WorldBank/SH_STA_SUIC_P5': 'Count_Death_IntentionalSelfHarm_AsFractionOf_Count_Person', - 'dcs:WorldBank/SL_TLF_ACTI_FE_ZS': 'Count_Person_15To64Years_Female_InLaborForce_AsFractionOf_Count_Person_15To64Years_Female', - 'dcs:WorldBank/SL_TLF_ACTI_MA_ZS': 'Count_Person_15To64Years_Male_InLaborForce_AsFractionOf_Count_Person_15To64Years_Male', - 'dcs:WorldBank/SL_TLF_ACTI_ZS': 'Count_Person_15To64Years_InLaborForce_AsFractionOf_Count_Person_15To64Years', - 'dcs:WorldBank/SL_TLF_TOTL_FE_ZS': 'Count_Person_15OrMoreYears_InLaborForce_Female_AsFractionOf_Count_Person_InLaborForce', - 'dcs:WorldBank/VC_IHR_PSRC_FE_P5': 'Count_CriminalActivities_MurderAndNonNegligentManslaughter_Female_AsFractionOf_Count_Person_Female', - 'dcs:WorldBank/VC_IHR_PSRC_MA_P5': 'Count_CriminalActivities_MurderAndNonNegligentManslaughter_Male_AsFractionOf_Count_Person_Male', - 'dcs:WorldBank/VC_IHR_PSRC_P5': 'Count_CriminalActivities_MurderAndNonNegligentManslaughter_AsFractionOf_Count_Person', - 'dcs:WorldBank/SP_RUR_TOTL': 'Count_Person_Rural', - 'dcs:WorldBank/SP_URB_TOTL': 'Count_Person_Urban', - 'dcs:WorldBank/SP_DYN_IMRT_IN': 'Count_Death_0Years_AsFractionOf_Count_BirthEvent_LiveBirth', - 'dcs:WorldBank/SP_DYN_IMRT_MA_IN': 'Count_Death_0Years_Male_AsFractionOf_Count_BirthEvent_LiveBirth_Male', - 'dcs:WorldBank/SP_DYN_IMRT_FE_IN': 'Count_Death_0Years_Female_AsFractionOf_Count_BirthEvent_LiveBirth_Female', - 'dcs:WorldBank/SH_DTH_IMRT': 'Count_Death_0Years', - 'dcs:WorldBank/SL_TLF_0714_ZS': 'Count_Person_7To14Years_Employed_AsFractionOf_Count_Person_7To14Years', - 'dcs:WorldBank/SL_TLF_0714_MA_ZS': 'Count_Person_7To14Years_Male_Employed_AsFractionOf_Count_Person_7To14Years_Male', - 'dcs:WorldBank/SL_TLF_0714_FE_ZS': 'Count_Person_7To14Years_Female_Employed_AsFractionOf_Count_Person_7To14Years_Female', - 'dcs:WorldBank/SH_SVR_WAST_ZS': 'Count_Person_Upto4Years_SevereWasting_AsFractionOf_Count_Person_Upto4Years', - 'dcs:WorldBank/SH_SVR_WAST_MA_ZS': 'Count_Person_Upto4Years_Male_SevereWasting_AsFractionOf_Count_Person_Upto4Years_Male', - 'dcs:WorldBank/SH_SVR_WAST_FE_ZS': 'Count_Person_Upto4Years_Female_SevereWasting_AsFractionOf_Count_Person_Upto4Years_Female', - 'dcs:WorldBank/SH_STA_WAST_ZS': 'Count_Person_Upto4Years_Wasting_AsFractionOf_Count_Person_Upto4Years', - 'dcs:WorldBank/SH_STA_WAST_MA_ZS': 'Count_Person_Upto4Years_Male_Wasting_AsFractionOf_Count_Person_Upto4Years_Male', - 'dcs:WorldBank/SH_STA_WAST_FE_ZS': 'Count_Person_Upto4Years_Female_Wasting_AsFractionOf_Count_Person_Upto4Years_Female', - 'dcs:WorldBank/SH_XPD_CHEX_PC_CD': 'Amount_EconomicActivity_ExpenditureActivity_HealthcareExpenditure_AsFractionOf_Count_Person', - 'dcs:WorldBank/SH_ALC_PCAP_LI': 'Amount_Consumption_Alcohol_15OrMoreYears_AsFractionOf_Count_Person_15OrMoreYears', - 'dcs:WorldBank/SI_POV_GINI': 'GiniIndex_EconomicActivity', - 'dcs:WorldBank/SE_XPD_TOTL_GB_ZS': 'Amount_EconomicActivity_ExpenditureActivity_EducationExpenditure_Government_AsFractionOf_Amount_EconomicActivity_ExpenditureActivity_Government', - 'dcs:WorldBank/SE_XPD_TOTL_GD_ZS': 'Amount_EconomicActivity_ExpenditureActivity_EducationExpenditure_Government_AsFractionOf_Amount_EconomicActivity_GrossDomesticProduction_Nominal', - 'dcs:WorldBank/MS_MIL_XPND_CD': 'Amount_EconomicActivity_ExpenditureActivity_MilitaryExpenditure_Government', - 'dcs:WorldBank/MS_MIL_XPND_GD_ZS': 'Amount_EconomicActivity_ExpenditureActivity_MilitaryExpenditure_Government_AsFractionOf_Amount_EconomicActivity_GrossDomesticProduction_Nominal', - 'dcs:WorldBank/CM_MKT_LCAP_GD_ZS': 'Amount_Stock_AsFractionOf_Amount_EconomicActivity_GrossDomesticProduction_Nominal', - 'dcs:WorldBank/CM_MKT_LCAP_CD': 'Amount_Stock', - 'dcs:WorldBank/BX_TRF_PWKR_DT_GD_ZS': 'Amount_Remittance_InwardRemittance_AsFractionOf_Amount_EconomicActivity_GrossDomesticProduction_Nominal', - 'dcs:WorldBank/BX_TRF_PWKR_CD_DT': 'Amount_Remittance_InwardRemittance', - 'dcs:WorldBank/BM_TRF_PWKR_CD_DT': 'Amount_Remittance_OutwardRemittance', - 'dcs:WorldBank/SH_DYN_MORT': 'MortalityRate_Person_Upto4Years_AsFractionOf_Count_BirthEvent_LiveBirth', - 'dcs:WorldBank/SH_PRV_SMOK': 'Count_Person_15OrMoreYears_Smoking_AsFractionOf_Count_Person_15OrMoreYears', - 'dcs:WorldBank/SH_PRV_SMOK_FE': 'Count_Person_15OrMoreYears_Female_Smoking_AsFractionOf_Count_Person_15OrMoreYears_Female', - 'dcs:WorldBank/SH_PRV_SMOK_MA': 'Count_Person_15OrMoreYears_Male_Smoking_AsFractionOf_Count_Person_15OrMoreYears_Male', - 'dcs:WorldBank/SH_STA_DIAB_ZS': 'Count_Person_20To79Years_Diabetes_AsFractionOf_Count_Person_20To79Years', - 'dcs:WorldBank/SP_DYN_CBRT_IN': 'Count_BirthEvent_LiveBirth_AsFractionOf_Count_Person', - 'dcs:WorldBank/SP_DYN_LE00_FE_IN': 'LifeExpectancy_Person_Female', - 'dcs:WorldBank/SP_DYN_LE00_MA_IN': 'LifeExpectancy_Person_Male', - 'dcs:WorldBank/EG_ELC_FOSL_ZS': 'Amount_Production_ElectricityFromOilGasOrCoalSources_AsFractionOf_Amount_Production_Energy', - 'dcs:WorldBank/EG_ELC_NUCL_ZS': 'Amount_Production_ElectricityFromNuclearSources_AsFractionOf_Amount_Production_Energy', - 'dcs:WorldBank/EG_FEC_RNEW_ZS': 'Amount_Consumption_RenewableEnergy_AsFractionOf_Amount_Consumption_Energy', - 'dcs:WorldBank/EN_POP_EL5M_ZS': 'Count_Person_ResidingLessThan5MetersAboveSeaLevel_AsFractionOf_Count_Person', - 'dcs:WorldBank/IT_CEL_SETS_P2': 'Count_Product_MobileCellularSubscription_AsFractionOf_Count_Person', - 'dcs:WorldBank/SE_XPD_TERT_ZS': 'Amount_EconomicActivity_ExpenditureActivity_TertiaryEducationExpenditure_Government_AsFractionOf_Amount_EconomicActivity_ExpenditureActivity_EducationExpenditure_Government', - 'dcs:WorldBank/SH_XPD_CHEX_PP_CD': 'Amount_EconomicActivity_ExpenditureActivity_HealthcareExpenditure_AsFractionOf_Count_Person', - 'dcs:WorldBank/SH_XPD_CHEX_PC_CD':'Amount_EconomicActivity_ExpenditureActivity_HealthcareExpenditure_AsFractionOf_Count_Person' - } - df = df.replace({'StatisticalVariable': resolution_to_existing_dcid}) + df = df.replace({'StatisticalVariable': RESOLUTION_TO_EXISTING_DCID}) + df.drop('IndicatorCode', axis=1).to_csv('output/WorldBank.csv', float_format='%.10f', index=False)