LSMS_Library 0.2.10.dev0__py3-none-any.whl → 0.7.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lsms_library/ISSUES.md +9 -0
- lsms_library/Makefile +43 -4
- lsms_library/__init__.py +178 -7
- lsms_library/categorical_mapping/ai_agent.py +14 -1
- lsms_library/categorical_mapping/categorical_mapping_helper.py +19 -0
- lsms_library/categorical_mapping/kinship.yml +574 -0
- lsms_library/cli.py +647 -0
- lsms_library/config.py +120 -0
- lsms_library/countries/.dvc/config +1 -1
- lsms_library/countries/.dvcignore +7 -0
- lsms_library/countries/Afghanistan/_/Makefile +10 -14
- lsms_library/countries/Afghanistan/_/afghanistan.py +1 -1
- lsms_library/countries/Albania/2002/_/data_info.yml +55 -0
- lsms_library/countries/Albania/2002/_/sample.py +21 -0
- lsms_library/countries/Albania/2003/_/data_info.yml +54 -0
- lsms_library/countries/Albania/2003/_/sample.py +27 -0
- lsms_library/countries/Albania/2004/_/data_info.yml +50 -0
- lsms_library/countries/Albania/2004/_/sample.py +33 -0
- lsms_library/countries/Albania/2005/_/data_info.yml +56 -0
- lsms_library/countries/Albania/2005/_/sample.py +32 -0
- lsms_library/countries/Albania/2008/_/data_info.yml +47 -0
- lsms_library/countries/Albania/2008/_/sample.py +30 -0
- lsms_library/countries/Albania/2012/_/data_info.yml +47 -0
- lsms_library/countries/Albania/2012/_/sample.py +30 -0
- lsms_library/countries/Albania/_/data_scheme.yml +35 -0
- lsms_library/countries/Armenia/1996/_/data_info.yml +27 -0
- lsms_library/countries/Armenia/_/data_scheme.yml +18 -0
- lsms_library/countries/Azerbaijan/1995/Documentation/.gitignore +6 -0
- lsms_library/countries/Azerbaijan/1995/Documentation/abstracte.pdf.dvc +5 -0
- lsms_library/countries/Azerbaijan/1995/Documentation/abstractr.pdf.dvc +5 -0
- lsms_library/countries/Azerbaijan/1995/Documentation/ppabse.pdf.dvc +5 -0
- lsms_library/countries/Azerbaijan/1995/Documentation/ppabsr.pdf.dvc +5 -0
- lsms_library/countries/Azerbaijan/1995/Documentation/queshhe.pdf.dvc +5 -0
- lsms_library/countries/Azerbaijan/1995/Documentation/quespope.pdf.dvc +5 -0
- lsms_library/countries/Azerbaijan/1995/_/1995.py +7 -0
- lsms_library/countries/Azerbaijan/1995/_/data_info.yml +69 -0
- lsms_library/countries/Azerbaijan/_/data_scheme.yml +35 -0
- lsms_library/countries/Benin/2018-19/_/2018-19.py +60 -0
- lsms_library/countries/Benin/2018-19/_/data_info.yml +220 -0
- lsms_library/countries/Benin/_/benin.py +10 -0
- lsms_library/countries/Benin/_/data_scheme.yml +59 -0
- lsms_library/countries/Bulgaria/1995/Documentation/.gitignore +1 -0
- lsms_library/countries/Bulgaria/1995/Documentation/BG95SUM.LOG.dvc +5 -0
- lsms_library/countries/Burkina_Faso/2014/_/2014.py +7 -0
- lsms_library/countries/Burkina_Faso/2014/_/data_info.yml +170 -0
- lsms_library/countries/Burkina_Faso/2014/_/food_acquired.py +2 -2
- lsms_library/countries/Burkina_Faso/2018-19/_/2018-19.py +58 -0
- lsms_library/countries/Burkina_Faso/2018-19/_/data_info.yml +213 -0
- lsms_library/countries/Burkina_Faso/2018-19/_/food_acquired.py +1 -1
- lsms_library/countries/Burkina_Faso/2021-22/_/2021-22.py +58 -0
- lsms_library/countries/Burkina_Faso/2021-22/_/data_info.yml +197 -0
- lsms_library/countries/Burkina_Faso/2021-22/_/food_acquired.py +1 -1
- lsms_library/countries/Burkina_Faso/_/CONTENTS.org +26 -4
- lsms_library/countries/Burkina_Faso/_/Makefile +15 -17
- lsms_library/countries/Burkina_Faso/_/burkina_faso.py +20 -1
- lsms_library/countries/Burkina_Faso/_/categorical_mapping.org +401 -0
- lsms_library/countries/Burkina_Faso/_/data_scheme.yml +75 -0
- lsms_library/countries/Burkina_Faso/_/food_acquired.py +1 -6
- lsms_library/countries/Burkina_Faso/_/panel_ids.json +1 -0
- lsms_library/countries/Burkina_Faso/_/panel_ids.py +96 -0
- lsms_library/countries/Burkina_Faso/_/updated_ids.json +1 -0
- lsms_library/countries/Cambodia/2019-20/_/data_info.yml +60 -0
- lsms_library/countries/Cambodia/2019-20/_/food_acquired.py +1 -1
- lsms_library/countries/Cambodia/_/CONTENTS.org +128 -3
- lsms_library/countries/Cambodia/_/Makefile +12 -17
- lsms_library/countries/Cambodia/_/cambodia.py +1 -1
- lsms_library/countries/Cambodia/_/data_scheme.yml +24 -0
- lsms_library/countries/Cambodia/_/food_acquired.py +1 -6
- lsms_library/countries/China/1995-97/_/1995-97.py +30 -0
- lsms_library/countries/China/1995-97/_/data_info.yml +40 -18
- lsms_library/countries/China/_/CONTENTS.org +53 -0
- lsms_library/countries/China/_/data_scheme.yml +28 -3
- lsms_library/countries/CotedIvoire/1985-86/_/data_info.yml +88 -0
- lsms_library/countries/CotedIvoire/1986-87/_/data_info.yml +88 -0
- lsms_library/countries/CotedIvoire/1987-88/_/data_info.yml +88 -0
- lsms_library/countries/CotedIvoire/1988-89/_/data_info.yml +88 -0
- lsms_library/countries/CotedIvoire/2018-19/_/data_info.yml +221 -0
- lsms_library/countries/CotedIvoire/2018-19/_/food_expenditures.py +1 -1
- lsms_library/countries/CotedIvoire/2018-19/_/nonfood_expenditures.py +1 -1
- lsms_library/countries/CotedIvoire/_/CONTENTS.org +130 -0
- lsms_library/countries/CotedIvoire/_/Makefile +12 -16
- lsms_library/countries/CotedIvoire/_/cotedivoire.py +80 -81
- lsms_library/countries/CotedIvoire/_/data_scheme.yml +64 -0
- lsms_library/countries/Ethiopia/2011-12/_/data_info.yml +124 -0
- lsms_library/countries/Ethiopia/2011-12/_/sample.py +49 -0
- lsms_library/countries/Ethiopia/2011-12/_/shocks.py +8 -8
- lsms_library/countries/Ethiopia/2013-14/_/data_info.yml +134 -0
- lsms_library/countries/Ethiopia/2013-14/_/sample.py +52 -0
- lsms_library/countries/Ethiopia/2013-14/_/shocks.py +8 -8
- lsms_library/countries/Ethiopia/2015-16/Documentation/SOURCE.org +3 -0
- lsms_library/countries/Ethiopia/2015-16/_/data_info.yml +137 -0
- lsms_library/countries/Ethiopia/2015-16/_/sample.py +52 -0
- lsms_library/countries/Ethiopia/2015-16/_/shocks.py +8 -8
- lsms_library/countries/Ethiopia/2018-19/_/data_info.yml +148 -0
- lsms_library/countries/Ethiopia/2018-19/_/sample.py +45 -0
- lsms_library/countries/Ethiopia/2018-19/_/shocks.py +8 -8
- lsms_library/countries/Ethiopia/2021-22/Data/cons_agg_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/crop_cf_wave5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/eth_householdgeovariables_y5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/eth_plotgeovariables_y5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/food_cf_wave5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect01a_com_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect01b_com_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect02_com_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect03_com_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect04_com_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect05_com_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect06_com_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect07_com_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect08_com_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect09_com_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect10_ph_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect10a_com_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect10a_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect10b_com_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect11_com_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect11_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect11_ph_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect12_com_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect12a_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect12b1_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect12b2_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect12c_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect12c_q1_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect12d_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect12e_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect12f_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect13_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect14_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect15a_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect15b_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect1_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect1_ph_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect1_pp_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect2_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect2_pp_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect3_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect3_pp_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect3b_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect4_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect4_pp_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect5_pp_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect5a_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect5b_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect6a_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect6b2_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect6b3_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect6b4_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect6c_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect7_pp_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect7a_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect7b_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect8_1_ls_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect8_2_ls_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect8_3_ls_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect8_4_ls_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect8_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect9_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect9_ph_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect9a_pp_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect_cover_hh_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect_cover_ls_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect_cover_ph_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Data/sect_cover_pp_w5.dta.dvc +5 -0
- lsms_library/countries/Ethiopia/2021-22/Documentation/LICENSE +29 -0
- lsms_library/countries/Ethiopia/2021-22/Documentation/SOURCE +1 -0
- lsms_library/countries/Ethiopia/2021-22/Documentation/SOURCE.org +3 -0
- lsms_library/countries/Ethiopia/2021-22/_/data_info.yml +157 -0
- lsms_library/countries/Ethiopia/2021-22/_/food_acquired.py +20 -0
- lsms_library/countries/Ethiopia/2021-22/_/sample.py +48 -0
- lsms_library/countries/Ethiopia/_/CONTENTS.org +130 -1
- lsms_library/countries/Ethiopia/_/Makefile +24 -20
- lsms_library/countries/Ethiopia/_/categorical_mapping.org +49 -0
- lsms_library/countries/Ethiopia/_/data_scheme.yml +61 -0
- lsms_library/countries/Ethiopia/_/ethiopia.py +18 -16
- lsms_library/countries/Ethiopia/_/fct_tools.py +4 -4
- lsms_library/countries/Ethiopia/_/food_acquired.py +2 -18
- lsms_library/countries/Ethiopia/_/food_items.org +82 -80
- lsms_library/countries/Ethiopia/_/nutrition.py +1 -1
- lsms_library/countries/Ethiopia/_/panel_ids.json +1 -0
- lsms_library/countries/Ethiopia/_/panel_ids.py +60 -0
- lsms_library/countries/Ethiopia/_/shocks.py +5 -12
- lsms_library/countries/Ethiopia/_/updated_ids.json +1 -0
- lsms_library/countries/GhanaLSS/1987-88/_/data_info.yml +8 -1
- lsms_library/countries/GhanaLSS/1987-88/_/food_acquired.py +4 -4
- lsms_library/countries/GhanaLSS/1987-88/_/mapping.py +11 -5
- lsms_library/countries/GhanaLSS/1988-89/_/data_info.yml +8 -1
- lsms_library/countries/GhanaLSS/1988-89/_/food_acquired.py +2 -2
- lsms_library/countries/GhanaLSS/1988-89/_/mapping.py +11 -5
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/.gitignore +12 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/Aggregat.doc.dvc +5 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3DEOMAN.DOC.dvc +5 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3INTMAN.DOC.dvc +5 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3QPartA.doc.dvc +5 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3QPartB.doc.dvc +5 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3QPrice.doc.dvc +5 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3REPORT.DOC.dvc +5 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3SUPMAN.DOC.dvc +5 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3USERSG.DOC.dvc +5 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3qcomm.doc.dvc +5 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/Povprof.doc.dvc +5 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/overview_glss3.doc.dvc +5 -0
- lsms_library/countries/GhanaLSS/1991-92/_/data_info.yml +12 -1
- lsms_library/countries/GhanaLSS/1991-92/_/food_acquired.py +7 -9
- lsms_library/countries/GhanaLSS/1991-92/_/mapping.py +17 -5
- lsms_library/countries/GhanaLSS/1998-99/_/data_info.yml +12 -1
- lsms_library/countries/GhanaLSS/1998-99/_/food_acquired.py +3 -3
- lsms_library/countries/GhanaLSS/1998-99/_/mapping.py +19 -7
- lsms_library/countries/GhanaLSS/2005-06/_/data_info.yml +11 -1
- lsms_library/countries/GhanaLSS/2005-06/_/food_acquired.py +2 -2
- lsms_library/countries/GhanaLSS/2005-06/_/mapping.py +15 -3
- lsms_library/countries/GhanaLSS/2012-13/Documentation/.gitignore +1 -0
- lsms_library/countries/GhanaLSS/2012-13/Documentation/Notes on how glss6 compares with other glss.docx.dvc +5 -0
- lsms_library/countries/GhanaLSS/2012-13/_/data_info.yml +14 -2
- lsms_library/countries/GhanaLSS/2012-13/_/food_acquired.py +9 -11
- lsms_library/countries/GhanaLSS/2012-13/_/mapping.py +10 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/7GLSS7 SECTION 10.docx.dvc +5 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/7GLSS7_Community Quest.docx.dvc +5 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/COVER PAGE _PRICE.docx.dvc +5 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/DIARY.doc.dvc +5 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/GLSS7 Final Manual.docx.dvc +5 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/GLSS7_MODULE A_30_9_16_for print.docx.dvc +5 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/GLSS7_MODULE B _14_10_16.docx.dvc +5 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/GPS Module 13_28_4_17.docx.dvc +5 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/Supervisors' manual_GLSS7.doc.dvc +5 -0
- lsms_library/countries/GhanaLSS/2016-17/_/data_info.yml +14 -1
- lsms_library/countries/GhanaLSS/2016-17/_/food_acquired.py +6 -8
- lsms_library/countries/GhanaLSS/2016-17/_/mapping.py +10 -0
- lsms_library/countries/GhanaLSS/TODO +39 -0
- lsms_library/countries/GhanaLSS/_/CONTENTS.org +126 -0
- lsms_library/countries/GhanaLSS/_/Makefile +17 -18
- lsms_library/countries/GhanaLSS/_/data_scheme.yml +18 -4
- lsms_library/countries/GhanaLSS/_/food_acquired.py +5 -17
- lsms_library/countries/GhanaLSS/_/ghanalss.py +39 -30
- lsms_library/countries/GhanaLSS/_/household_roster.py +5 -14
- lsms_library/countries/GhanaLSS/_/panel_ids.json +1 -0
- lsms_library/countries/GhanaLSS/_/panel_ids.py +104 -0
- lsms_library/countries/GhanaLSS/_/updated_ids.json +1 -0
- lsms_library/countries/GhanaLSS/dvc.yaml +1 -0
- lsms_library/countries/GhanaSPS/2009-10/_/food_acquired.py +1 -1
- lsms_library/countries/GhanaSPS/2013-14/Documentation/.gitignore +3 -0
- lsms_library/countries/GhanaSPS/2013-14/Documentation/ISSER_Yale_Community Survey_WAVE II.docx.dvc +6 -0
- lsms_library/countries/GhanaSPS/2013-14/Documentation/ISSER_Yale_Part A_WAVE II.docx.dvc +6 -0
- lsms_library/countries/GhanaSPS/2013-14/Documentation/ISSER_Yale_Part B_WAVE II.docx.dvc +6 -0
- lsms_library/countries/GhanaSPS/2013-14/_/food_acquired.py +1 -1
- lsms_library/countries/GhanaSPS/2017-18/Documentation/Questionnaire/.gitignore +1 -0
- lsms_library/countries/GhanaSPS/2017-18/Documentation/Questionnaire/HH_Questionnaire_23_10.docx.dvc +5 -0
- lsms_library/countries/GhanaSPS/2017-18/_/food_acquired.py +1 -1
- lsms_library/countries/GhanaSPS/_/Makefile +11 -15
- lsms_library/countries/GhanaSPS/_/food_acquired.py +1 -11
- lsms_library/countries/GhanaSPS/_/ghanasps.py +14 -13
- lsms_library/countries/Guatemala/2000/_/data_info.yml +70 -0
- lsms_library/countries/Guatemala/_/Makefile +14 -19
- lsms_library/countries/Guatemala/_/data_scheme.yml +27 -0
- lsms_library/countries/Guatemala/_/food_acquired.py +0 -5
- lsms_library/countries/Guatemala/_/guatemala.py +2 -2
- lsms_library/countries/Guinea-Bissau/2018-19/_/2018-19.py +57 -0
- lsms_library/countries/Guinea-Bissau/2018-19/_/data_info.yml +219 -0
- lsms_library/countries/Guinea-Bissau/_/categorical_mapping.org +12 -0
- lsms_library/countries/Guinea-Bissau/_/data_scheme.yml +62 -0
- lsms_library/countries/Guinea-Bissau/_/guinea-bissau.py +11 -0
- lsms_library/countries/Guyana/1992/_/1992.py +7 -0
- lsms_library/countries/Guyana/1992/_/data_info.yml +82 -0
- lsms_library/countries/Guyana/_/data_scheme.yml +26 -0
- lsms_library/countries/Harmonized_LSMS-ISA_Ag/lsms_ag.parquet.dvc +5 -0
- lsms_library/countries/India/1997-98/_/data_info.yml +34 -2
- lsms_library/countries/India/_/data_scheme.yml +23 -4
- lsms_library/countries/Iraq/2006-07/_/data_info.yml +74 -2
- lsms_library/countries/Iraq/2012/_/data_info.yml +18 -1
- lsms_library/countries/Iraq/_/data_scheme.yml +13 -2
- lsms_library/countries/Kazakhstan/1996/_/data_info.yml +59 -0
- lsms_library/countries/Kazakhstan/1996/dvc.yaml +1 -0
- lsms_library/countries/Kazakhstan/1996/var/.gitkeep +0 -0
- lsms_library/countries/Kazakhstan/_/data_scheme.yml +30 -0
- lsms_library/countries/Kazakhstan/dvc.yaml +1 -0
- lsms_library/countries/KenyaLPS/2015/Data/KLPS1_C-Module_CONTROL_PUBLIC_2015-12.dta.dvc +5 -0
- lsms_library/countries/KenyaLPS/2015/Data/KLPS1_C-Module_PUBLIC_2015-12.dta.dvc +5 -0
- lsms_library/countries/KenyaLPS/2015/Data/KLPS1_E-Module_CONTROL_PUBLIC_2015-12.dta.dvc +5 -0
- lsms_library/countries/KenyaLPS/2015/Data/KLPS1_E-Module_PUBLIC_2015-12.dta.dvc +5 -0
- lsms_library/countries/KenyaLPS/2015/Data/KLPS1_F-Module_CONTROL_PUBLIC_2015-12.dta.dvc +5 -0
- lsms_library/countries/KenyaLPS/2015/Data/KLPS1_F-Module_PUBLIC_2015-12.dta.dvc +5 -0
- lsms_library/countries/KenyaLPS/2015/Data/KLPS1_H-Module_CONTROL_PUBLIC_2015-12.dta.dvc +5 -0
- lsms_library/countries/KenyaLPS/2015/Data/KLPS1_H-Module_PUBLIC_2015-12.dta.dvc +5 -0
- lsms_library/countries/KenyaLPS/2015/Data/KLPS1_SampleMaster_PUBLIC_2015-12.dta.dvc +5 -0
- lsms_library/countries/KenyaLPS/2015/Data/KLPS1_Status_PUBLIC_2015-12.dta.dvc +5 -0
- lsms_library/countries/Kosovo/2000/_/data_info.yml +62 -3
- lsms_library/countries/Kosovo/_/data_scheme.yml +23 -3
- lsms_library/countries/Liberia/2018-19/_/2018-19.py +13 -0
- lsms_library/countries/Liberia/2018-19/_/data_info.yml +26 -1
- lsms_library/countries/Liberia/_/data_scheme.yml +23 -2
- lsms_library/countries/Malawi/2004-05/_/data_info.yml +85 -2
- lsms_library/countries/Malawi/2004-05/_/food_acquired.py +4 -7
- lsms_library/countries/Malawi/2004-05/dvc.yaml +1 -0
- lsms_library/countries/Malawi/2004-05/var/.gitkeep +0 -0
- lsms_library/countries/Malawi/2010-11/_/data_info.yml +166 -10
- lsms_library/countries/Malawi/2010-11/_/food_acquired.py +17 -7
- lsms_library/countries/Malawi/2010-11/dvc.yaml +1 -0
- lsms_library/countries/Malawi/2010-11/var/.gitkeep +0 -0
- lsms_library/countries/Malawi/2013-14/_/data_info.yml +136 -10
- lsms_library/countries/Malawi/2013-14/_/food_acquired.py +22 -14
- lsms_library/countries/Malawi/2013-14/dvc.yaml +1 -0
- lsms_library/countries/Malawi/2013-14/var/.gitkeep +0 -0
- lsms_library/countries/Malawi/2016-17/_/2016-17.py +1 -1
- lsms_library/countries/Malawi/2016-17/_/data_info.yml +171 -16
- lsms_library/countries/Malawi/2016-17/_/food_acquired.py +13 -6
- lsms_library/countries/Malawi/2016-17/dvc.yaml +1 -0
- lsms_library/countries/Malawi/2016-17/var/.gitkeep +0 -0
- lsms_library/countries/Malawi/2019-20/_/2019-20.py +1 -1
- lsms_library/countries/Malawi/2019-20/_/data_info.yml +166 -17
- lsms_library/countries/Malawi/2019-20/_/food_acquired.py +14 -5
- lsms_library/countries/Malawi/2019-20/dvc.yaml +1 -0
- lsms_library/countries/Malawi/2019-20/var/.gitkeep +0 -0
- lsms_library/countries/Malawi/_/CONTENTS.org +109 -4
- lsms_library/countries/Malawi/_/Makefile +14 -18
- lsms_library/countries/Malawi/_/categorical_mapping.org +97 -0
- lsms_library/countries/Malawi/_/data_scheme.yml +39 -11
- lsms_library/countries/Malawi/_/food_acquired.py +15 -19
- lsms_library/countries/Malawi/_/food_prices_quantities_and_expenditures.py +3 -4
- lsms_library/countries/Malawi/_/malawi.py +42 -16
- lsms_library/countries/Malawi/dvc.yaml +1 -0
- lsms_library/countries/Mali/2014-15/_/2014-15.py +2 -2
- lsms_library/countries/Mali/2014-15/_/data_info.yml +138 -47
- lsms_library/countries/Mali/2017-18/_/2017-18.py +4 -1
- lsms_library/countries/Mali/2017-18/_/data_info.yml +126 -10
- lsms_library/countries/Mali/2018-19/_/2018-19.py +60 -0
- lsms_library/countries/Mali/2018-19/_/data_info.yml +158 -10
- lsms_library/countries/Mali/2021-22/_/2021-22.py +61 -2
- lsms_library/countries/Mali/2021-22/_/data_info.yml +157 -19
- lsms_library/countries/Mali/_/Makefile +18 -0
- lsms_library/countries/Mali/_/categorical_mapping.org +9 -0
- lsms_library/countries/Mali/_/data_scheme.yml +37 -8
- lsms_library/countries/Mali/_/mali.py +10 -10
- lsms_library/countries/Mali/_/panel_ids.json +1 -0
- lsms_library/countries/Mali/_/panel_ids.py +158 -0
- lsms_library/countries/Mali/_/updated_ids.json +1 -0
- lsms_library/countries/Nepal/1995-96/_/data_info.yml +35 -0
- lsms_library/countries/Nepal/2003-04/_/data_info.yml +35 -0
- lsms_library/countries/Nepal/2010-11/_/data_info.yml +25 -0
- lsms_library/countries/Nepal/_/CONTENTS.org +81 -0
- lsms_library/countries/Nepal/_/Makefile +26 -0
- lsms_library/countries/Nepal/_/data_scheme.yml +39 -15
- lsms_library/countries/Nepal/_/nepal.py +7 -0
- lsms_library/countries/Niger/2011-12/_/data_info.yml +142 -0
- lsms_library/countries/Niger/2014-15/_/data_info.yml +145 -0
- lsms_library/countries/Niger/2018-19/_/data_info.yml +221 -0
- lsms_library/countries/Niger/2021-22/Data/calorie_conversion_wa_2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/ehcvm_conso_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/ehcvm_ihpc_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/ehcvm_ihpcreg_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/ehcvm_individu_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/ehcvm_menage_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/ehcvm_nsu_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/ehcvm_ponderations_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/ehcvm_prix_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/ehcvm_welfare_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s00_co_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s00_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s01_co_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s01_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s02_co_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s02_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s03_co_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s03_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s04_co_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s04a_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s04b_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s04c_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s05_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s06_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s07a_1_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s07a_2_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s07b_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s08a_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s09a_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s09b_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s09c_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s09d_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s09e_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s09f_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s10a_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s10b_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s11_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s12_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s13_1_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s13_2_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s14a_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s14b_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s15_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s16a_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s16b_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s16c_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s16d_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s17_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s19_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s20a_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s20b_1_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s20b_2_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s20b_3_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Data/s20c_me_ner2021.dta.dvc +5 -0
- lsms_library/countries/Niger/2021-22/Documentation/SOURCE.org +3 -0
- lsms_library/countries/Niger/2021-22/_/data_info.yml +213 -0
- lsms_library/countries/Niger/_/Makefile +17 -0
- lsms_library/countries/Niger/_/categorical_mapping.org +116 -0
- lsms_library/countries/Niger/_/data_scheme.yml +71 -0
- lsms_library/countries/Niger/_/niger.py +108 -8
- lsms_library/countries/Niger/_/panel_ids.json +1 -0
- lsms_library/countries/Niger/_/panel_ids.py +207 -0
- lsms_library/countries/Niger/_/updated_ids.json +1 -0
- lsms_library/countries/Nigeria/2010-11/_/data_info.yml +75 -0
- lsms_library/countries/Nigeria/2010-11/_/food_acquired.py +100 -0
- lsms_library/countries/Nigeria/2010-11/_/household_roster.py +14 -14
- lsms_library/countries/Nigeria/2010-11/_/housing.py +55 -0
- lsms_library/countries/Nigeria/2010-11/_/interview_date.py +2 -2
- lsms_library/countries/Nigeria/2010-11/_/nonfood_expenditures.py +1 -1
- lsms_library/countries/Nigeria/2010-11/_/plots.py +1 -1
- lsms_library/countries/Nigeria/2012-13/_/data_info.yml +101 -0
- lsms_library/countries/Nigeria/2012-13/_/food_acquired.py +92 -0
- lsms_library/countries/Nigeria/2012-13/_/household_roster.py +14 -14
- lsms_library/countries/Nigeria/2012-13/_/housing.py +48 -0
- lsms_library/countries/Nigeria/2012-13/_/individual_unit_values.py +2 -2
- lsms_library/countries/Nigeria/2012-13/_/interview_date.py +2 -2
- lsms_library/countries/Nigeria/2012-13/_/nonfood_expenditures.py +1 -1
- lsms_library/countries/Nigeria/2012-13/_/plots.py +1 -1
- lsms_library/countries/Nigeria/2012-13/_/units.py +4 -4
- lsms_library/countries/Nigeria/2015-16/_/data_info.yml +92 -0
- lsms_library/countries/Nigeria/2015-16/_/food_acquired.py +92 -0
- lsms_library/countries/Nigeria/2015-16/_/household_roster.py +14 -14
- lsms_library/countries/Nigeria/2015-16/_/housing.py +46 -0
- lsms_library/countries/Nigeria/2015-16/_/individual_unit_values.py +2 -2
- lsms_library/countries/Nigeria/2015-16/_/interview_date.py +2 -2
- lsms_library/countries/Nigeria/2015-16/_/nonfood_expenditures.py +1 -1
- lsms_library/countries/Nigeria/2015-16/_/plots.py +1 -1
- lsms_library/countries/Nigeria/2015-16/_/units.py +2 -3
- lsms_library/countries/Nigeria/2018-19/_/data_info.yml +85 -0
- lsms_library/countries/Nigeria/2018-19/_/food_acquired.py +105 -0
- lsms_library/countries/Nigeria/2018-19/_/household_roster.py +14 -14
- lsms_library/countries/Nigeria/2018-19/_/housing.py +61 -0
- lsms_library/countries/Nigeria/2018-19/_/individual_unit_values.py +2 -2
- lsms_library/countries/Nigeria/2018-19/_/interview_date.py +2 -2
- lsms_library/countries/Nigeria/2018-19/_/nonfood_expenditures.py +1 -1
- lsms_library/countries/Nigeria/2018-19/_/plots.py +1 -1
- lsms_library/countries/Nigeria/2018-19/_/units.py +2 -3
- lsms_library/countries/Nigeria/2023-24/_/data_info.yml +33 -0
- lsms_library/countries/Nigeria/2023-24/_/housing.py +63 -0
- lsms_library/countries/Nigeria/_/CONTENTS.org +63 -0
- lsms_library/countries/Nigeria/_/Makefile +62 -21
- lsms_library/countries/Nigeria/_/categorical_mapping.org +377 -0
- lsms_library/countries/Nigeria/_/data_scheme.yml +69 -0
- lsms_library/countries/Nigeria/_/food_acquired.py +12 -0
- lsms_library/countries/Nigeria/_/housing.py +11 -0
- lsms_library/countries/Nigeria/_/interview_date.py +12 -0
- lsms_library/countries/Nigeria/_/nigeria.py +16 -2
- lsms_library/countries/Pakistan/1991/_/1991.py +11 -0
- lsms_library/countries/Pakistan/1991/_/data_info.yml +80 -0
- lsms_library/countries/Pakistan/_/data_scheme.yml +31 -0
- lsms_library/countries/Panama/1997/_/food_acquired.py +2 -2
- lsms_library/countries/Panama/2003/_/food_acquired.py +2 -2
- lsms_library/countries/Panama/2008/_/food_acquired.py +6 -6
- lsms_library/countries/Panama/_/CONTENTS.org +28 -1
- lsms_library/countries/Panama/_/Makefile +12 -17
- lsms_library/countries/Panama/_/food_acquired.py +1 -6
- lsms_library/countries/Panama/_/nutrition.py +2 -2
- lsms_library/countries/Panama/_/panama.py +1 -1
- lsms_library/countries/Peru/1994/_/data_info.yml +16 -58
- lsms_library/countries/Peru/_/categorical_mapping.org +101 -0
- lsms_library/countries/Peru/_/data_info.yml +1 -1
- lsms_library/countries/Senegal/2018-19/_/2018-19.py +72 -20
- lsms_library/countries/Senegal/2018-19/_/data_info.yml +210 -21
- lsms_library/countries/Senegal/2018-19/_/food_acquired.py +1 -1
- lsms_library/countries/Senegal/2021-22/Data/calorie_conversion_wa_2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/ehcvm_conso_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/ehcvm_ihpc_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/ehcvm_individu_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/ehcvm_menage_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/ehcvm_nsu_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/ehcvm_nsu_sen2021_nat.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/ehcvm_nsu_sen2021_nat2023.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/ehcvm_ponderations_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/ehcvm_prix_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/ehcvm_welfare_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s00_co_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s00_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s01_co_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s01_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s02_co_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s02_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s03_co_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s03_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s04_co_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s04a_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s04b_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s04c_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s05_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s06_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s07a_1_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s07a_2_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s07b_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s08a_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s09a_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s09b_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s09c_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s09d_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s09e_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s09f_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s10a_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s10b_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s11_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s12_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s13_1_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s13_2_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s14a_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s14b_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s15_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s16a_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s16b_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s16c_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s16d_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s17_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s18_1_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s18_2_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s18_3_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s19_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s20a_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s20b_1_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s20b_2_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s20b_3_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/Data/s20c_me_sen2021.dta.dvc +5 -0
- lsms_library/countries/Senegal/2021-22/_/2021-22.py +148 -0
- lsms_library/countries/Senegal/2021-22/_/data_info.yml +236 -0
- lsms_library/countries/Senegal/_/Makefile +18 -17
- lsms_library/countries/Senegal/_/categorical_mapping.org +448 -0
- lsms_library/countries/Senegal/_/data_scheme.yml +57 -2
- lsms_library/countries/Senegal/_/food_acquired.py +1 -4
- lsms_library/countries/Senegal/_/panel_ids.json +1 -0
- lsms_library/countries/Senegal/_/panel_ids.py +113 -0
- lsms_library/countries/Senegal/_/senegal.py +19 -1
- lsms_library/countries/Senegal/_/updated_ids.json +1 -0
- lsms_library/countries/Senegal/dvc.yaml +1 -0
- lsms_library/countries/Serbia/2007/_/2007.py +7 -0
- lsms_library/countries/Serbia/2007/_/data_info.yml +45 -4
- lsms_library/countries/Serbia/2007/_/food_acquired.py +1 -1
- lsms_library/countries/Serbia/_/CONTENTS.org +152 -10
- lsms_library/countries/Serbia/_/Makefile +10 -15
- lsms_library/countries/Serbia/_/data_scheme.yml +19 -3
- lsms_library/countries/Serbia/_/food_acquired.py +1 -6
- lsms_library/countries/Serbia/_/serbia.py +1 -1
- lsms_library/countries/Serbia/dvc.yaml +1 -0
- lsms_library/countries/Serbia and Montenegro/2002/_/2002.py +7 -0
- lsms_library/countries/Serbia and Montenegro/2002/_/data_info.yml +31 -3
- lsms_library/countries/Serbia and Montenegro/2003/_/2003.py +7 -0
- lsms_library/countries/Serbia and Montenegro/2003/_/data_info.yml +31 -2
- lsms_library/countries/Serbia and Montenegro/_/data_scheme.yml +18 -2
- lsms_library/countries/South Africa/1993/_/data_info.yml +34 -1
- lsms_library/countries/South Africa/_/data_scheme.yml +18 -2
- lsms_library/countries/Tajikistan/1999/_/1999.py +7 -0
- lsms_library/countries/Tajikistan/1999/_/data_info.yml +73 -0
- lsms_library/countries/Tajikistan/2003/_/data_info.yml +73 -0
- lsms_library/countries/Tajikistan/2007/_/data_info.yml +73 -0
- lsms_library/countries/Tajikistan/2009/_/data_info.yml +73 -0
- lsms_library/countries/Tajikistan/_/data_scheme.yml +26 -0
- lsms_library/countries/Tanzania/2008-15/_/cluster_features.py +24 -0
- lsms_library/countries/Tanzania/2008-15/_/household_roster.py +38 -0
- lsms_library/countries/Tanzania/2008-15/_/housing.py +45 -0
- lsms_library/countries/Tanzania/2008-15/_/sample.py +57 -0
- lsms_library/countries/Tanzania/2008-15/_/shocks.py +53 -56
- lsms_library/countries/Tanzania/2019-20/Documentation/.gitignore +1 -0
- lsms_library/countries/Tanzania/2019-20/Documentation/TZA_2019_NPS-SDD_v06_M.xml.dvc +5 -0
- lsms_library/countries/Tanzania/2019-20/_/2019-20.py +7 -0
- lsms_library/countries/Tanzania/2019-20/_/community_prices.py +1 -1
- lsms_library/countries/Tanzania/2019-20/_/data_info.yml +128 -0
- lsms_library/countries/Tanzania/2019-20/_/finances.py +1 -1
- lsms_library/countries/Tanzania/2019-20/_/shocks.py +50 -25
- lsms_library/countries/Tanzania/2020-21/_/2020-21.py +7 -0
- lsms_library/countries/Tanzania/2020-21/_/community_prices.py +3 -3
- lsms_library/countries/Tanzania/2020-21/_/data_info.yml +120 -0
- lsms_library/countries/Tanzania/2020-21/_/finances.py +1 -1
- lsms_library/countries/Tanzania/2020-21/_/labor_recent.py +1 -1
- lsms_library/countries/Tanzania/2020-21/_/shocks.py +50 -24
- lsms_library/countries/Tanzania/_/CONTENTS.org +276 -45
- lsms_library/countries/Tanzania/_/Makefile +10 -25
- lsms_library/countries/Tanzania/_/categorical_mapping.org +430 -0
- lsms_library/countries/Tanzania/_/data_scheme.yml +56 -0
- lsms_library/countries/Tanzania/_/food_acquired.py +2 -11
- lsms_library/countries/Tanzania/_/food_prices_quantities_and_expenditures.py +4 -4
- lsms_library/countries/Tanzania/_/panel_ids.json +1 -1
- lsms_library/countries/Tanzania/_/panel_ids.py +86 -7
- lsms_library/countries/Tanzania/_/shocks.py +41 -17
- lsms_library/countries/Tanzania/_/tanzania.py +149 -24
- lsms_library/countries/Tanzania/_/updated_ids.json +1 -1
- lsms_library/countries/Tanzania_Kegera/2004-05/Documentation/.gitignore +1 -0
- lsms_library/countries/Tanzania_Kegera/2004-05/Documentation/TZA_2004_KHDS_v01_M.xml.dvc +5 -0
- lsms_library/countries/Timor-Leste/2001/_/data_info.yml +42 -0
- lsms_library/countries/Timor-Leste/2007-08/_/data_info.yml +16 -2
- lsms_library/countries/Timor-Leste/_/data_scheme.yml +15 -2
- lsms_library/countries/Togo/2018/_/2018.py +58 -0
- lsms_library/countries/Togo/2018/_/data_info.yml +216 -4
- lsms_library/countries/Togo/2018/_/food_expenditures.py +1 -1
- lsms_library/countries/Togo/_/Makefile +11 -15
- lsms_library/countries/Togo/_/data_scheme.yml +50 -2
- lsms_library/countries/Togo/_/togo.py +12 -1
- lsms_library/countries/Togo/dvc.yaml +1 -0
- lsms_library/countries/Uganda/2005-06/Data/2009_UNPS_Geovars_0910.dta.dvc +5 -0
- lsms_library/countries/Uganda/2005-06/_/assets.py +1 -1
- lsms_library/countries/Uganda/2005-06/_/data_info.yml +21 -3
- lsms_library/countries/Uganda/2005-06/_/earnings.py +1 -1
- lsms_library/countries/Uganda/2005-06/_/education_expenses.py +1 -1
- lsms_library/countries/Uganda/2005-06/_/enterprise_income.py +1 -1
- lsms_library/countries/Uganda/2005-06/_/plots.py +1 -1
- lsms_library/countries/Uganda/2005-06/_/shocks.py +7 -7
- lsms_library/countries/Uganda/2009-10/_/assets.py +1 -1
- lsms_library/countries/Uganda/2009-10/_/data_info.yml +46 -11
- lsms_library/countries/Uganda/2009-10/_/earnings.py +1 -1
- lsms_library/countries/Uganda/2009-10/_/education_expenses.py +1 -1
- lsms_library/countries/Uganda/2009-10/_/enterprise_income.py +1 -1
- lsms_library/countries/Uganda/2009-10/_/plots.py +1 -1
- lsms_library/countries/Uganda/2009-10/_/shocks.py +8 -8
- lsms_library/countries/Uganda/2010-11/_/assets.py +1 -1
- lsms_library/countries/Uganda/2010-11/_/data_info.yml +52 -7
- lsms_library/countries/Uganda/2010-11/_/earnings.py +1 -1
- lsms_library/countries/Uganda/2010-11/_/education_expenses.py +1 -1
- lsms_library/countries/Uganda/2010-11/_/enterprise_income.py +1 -1
- lsms_library/countries/Uganda/2010-11/_/plots.py +1 -1
- lsms_library/countries/Uganda/2010-11/_/shocks.py +8 -8
- lsms_library/countries/Uganda/2011-12/_/assets.py +1 -1
- lsms_library/countries/Uganda/2011-12/_/data_info.yml +49 -4
- lsms_library/countries/Uganda/2011-12/_/earnings.py +1 -1
- lsms_library/countries/Uganda/2011-12/_/enterprise_income.py +1 -1
- lsms_library/countries/Uganda/2011-12/_/plots.py +1 -1
- lsms_library/countries/Uganda/2011-12/_/shocks.py +8 -8
- lsms_library/countries/Uganda/2013-14/Data/unps_geovars_2013_14.dta.dvc +5 -0
- lsms_library/countries/Uganda/2013-14/_/assets.py +1 -1
- lsms_library/countries/Uganda/2013-14/_/data_info.yml +29 -0
- lsms_library/countries/Uganda/2013-14/_/earnings.py +1 -1
- lsms_library/countries/Uganda/2013-14/_/education_expenses.py +1 -1
- lsms_library/countries/Uganda/2013-14/_/enterprise_income.py +1 -1
- lsms_library/countries/Uganda/2013-14/_/plots.py +1 -1
- lsms_library/countries/Uganda/2013-14/_/shocks.py +8 -8
- lsms_library/countries/Uganda/2015-16/Data/unps_geovars_2015_16.dta.dvc +5 -0
- lsms_library/countries/Uganda/2015-16/_/assets.py +1 -1
- lsms_library/countries/Uganda/2015-16/_/data_info.yml +29 -0
- lsms_library/countries/Uganda/2015-16/_/earnings.py +1 -1
- lsms_library/countries/Uganda/2015-16/_/education_expenses.py +1 -1
- lsms_library/countries/Uganda/2015-16/_/enterprise_income.py +1 -1
- lsms_library/countries/Uganda/2015-16/_/nonfood_expenditures.py +1 -1
- lsms_library/countries/Uganda/2015-16/_/plots.py +1 -1
- lsms_library/countries/Uganda/2015-16/_/shocks.py +10 -10
- lsms_library/countries/Uganda/2018-19/Data/unps_geovars_2018_19.dta.dvc +5 -0
- lsms_library/countries/Uganda/2018-19/_/assets.py +1 -1
- lsms_library/countries/Uganda/2018-19/_/data_info.yml +30 -1
- lsms_library/countries/Uganda/2018-19/_/earnings.py +1 -1
- lsms_library/countries/Uganda/2018-19/_/education_expenses.py +1 -1
- lsms_library/countries/Uganda/2018-19/_/enterprise_income.py +1 -1
- lsms_library/countries/Uganda/2018-19/_/plots.py +1 -1
- lsms_library/countries/Uganda/2018-19/_/shocks.py +8 -8
- lsms_library/countries/Uganda/2019-20/_/assets.py +1 -1
- lsms_library/countries/Uganda/2019-20/_/data_info.yml +38 -1
- lsms_library/countries/Uganda/2019-20/_/earnings.py +1 -1
- lsms_library/countries/Uganda/2019-20/_/education_expenses.py +1 -1
- lsms_library/countries/Uganda/2019-20/_/enterprise_income.py +1 -1
- lsms_library/countries/Uganda/2019-20/_/plots.py +1 -1
- lsms_library/countries/Uganda/2019-20/_/shocks.py +7 -7
- lsms_library/countries/Uganda/TODO +33 -0
- lsms_library/countries/Uganda/_/CONTENTS.org +140 -0
- lsms_library/countries/Uganda/_/Makefile +23 -24
- lsms_library/countries/Uganda/_/assets.py +5 -5
- lsms_library/countries/Uganda/_/categorical_mapping.org +70 -0
- lsms_library/countries/Uganda/_/data_scheme.yml +49 -14
- lsms_library/countries/Uganda/_/earnings.py +4 -10
- lsms_library/countries/Uganda/_/enterprise_income.py +5 -11
- lsms_library/countries/Uganda/_/fct_addition.py +1 -1
- lsms_library/countries/Uganda/_/food_acquired.py +2 -7
- lsms_library/countries/Uganda/_/food_prices_quantities_and_expenditures.py +15 -9
- lsms_library/countries/Uganda/_/interview_date.py +3 -11
- lsms_library/countries/Uganda/_/nonfood_expenditures.py +6 -7
- lsms_library/countries/Uganda/_/nutrition.py +1 -1
- lsms_library/countries/Uganda/_/regions_are_markets.py +2 -2
- lsms_library/countries/Uganda/_/shocks.py +2 -10
- lsms_library/countries/Uganda/_/uganda.py +112 -100
- lsms_library/countries/Uganda/dvc.yaml +1 -0
- lsms_library/countries/dvc.yaml +1 -0
- lsms_library/country.py +2115 -317
- lsms_library/data_access.py +1233 -0
- lsms_library/data_info.yml +102 -6
- lsms_library/demands.py +54 -14
- lsms_library/diagnostics.py +1447 -0
- lsms_library/dvc_permissions.py +73 -17
- lsms_library/feature.py +149 -0
- lsms_library/local_tools.py +555 -208
- lsms_library/paths.py +138 -0
- lsms_library/transformations.py +263 -3
- lsms_library/util/__init__.py +15 -0
- lsms_library/util/generate_dvc_stages.py +300 -0
- lsms_library/util/geo_audit.py +611 -0
- lsms_library/util/run_stage.py +126 -0
- lsms_library/yaml_utils.py +54 -0
- lsms_library-0.7.0.dist-info/METADATA +172 -0
- {lsms_library-0.2.10.dev0.dist-info → lsms_library-0.7.0.dist-info}/RECORD +808 -536
- {lsms_library-0.2.10.dev0.dist-info → lsms_library-0.7.0.dist-info}/WHEEL +1 -1
- lsms_library-0.7.0.dist-info/entry_points.txt +3 -0
- lsms_library/categorical_mapping/spelling.yml +0 -2
- lsms_library/countries/Afghanistan/2016-17/_/household_characteristics.py +0 -26
- lsms_library/countries/Afghanistan/_/household_characteristics.py +0 -12
- lsms_library/countries/Azerbaijan/1995/Documentation /abstracte.pdf +0 -0
- lsms_library/countries/Azerbaijan/1995/Documentation /abstractr.pdf +0 -0
- lsms_library/countries/Azerbaijan/1995/Documentation /ppabse.pdf +0 -0
- lsms_library/countries/Azerbaijan/1995/Documentation /ppabsr.pdf +0 -28214
- lsms_library/countries/Azerbaijan/1995/Documentation /queshhe.pdf +0 -0
- lsms_library/countries/Azerbaijan/1995/Documentation /quespope.pdf +0 -0
- lsms_library/countries/Bulgaria/1995/Documentation/BG95SUM.LOG +0 -8834
- lsms_library/countries/Burkina_Faso/2014/_/household_characteristics.py +0 -54
- lsms_library/countries/Burkina_Faso/2014/_/other_features.py +0 -23
- lsms_library/countries/Burkina_Faso/2018-19/_/household_characteristics.py +0 -47
- lsms_library/countries/Burkina_Faso/2018-19/_/other_features.py +0 -26
- lsms_library/countries/Burkina_Faso/2021-22/_/household_characteristics.py +0 -46
- lsms_library/countries/Burkina_Faso/2021-22/_/other_features.py +0 -27
- lsms_library/countries/Burkina_Faso/_/household_characteristics.py +0 -16
- lsms_library/countries/Burkina_Faso/_/other_features.py +0 -19
- lsms_library/countries/Cambodia/2019-20/_/household_characteristics.py +0 -27
- lsms_library/countries/Cambodia/2019-20/_/other_features.py +0 -22
- lsms_library/countries/Cambodia/_/household_characteristics.py +0 -12
- lsms_library/countries/Cambodia/_/other_features.py +0 -20
- lsms_library/countries/CotedIvoire/1985-86/_/household_characteristics.py +0 -22
- lsms_library/countries/CotedIvoire/1986-87/_/household_characteristics.py +0 -24
- lsms_library/countries/CotedIvoire/1987-88/_/household_characteristics.py +0 -24
- lsms_library/countries/CotedIvoire/1988-89/_/household_characteristics.py +0 -24
- lsms_library/countries/CotedIvoire/2018-19/_/household_characteristics.py +0 -86
- lsms_library/countries/Ethiopia/2011-12/_/household_characteristics.py +0 -23
- lsms_library/countries/Ethiopia/2011-12/_/other_features.py +0 -31
- lsms_library/countries/Ethiopia/2013-14/_/household_characteristics.py +0 -23
- lsms_library/countries/Ethiopia/2013-14/_/other_features.py +0 -31
- lsms_library/countries/Ethiopia/2015-16/Documentation/SOURCE +0 -3
- lsms_library/countries/Ethiopia/2015-16/_/household_characteristics.py +0 -23
- lsms_library/countries/Ethiopia/2015-16/_/other_features.py +0 -31
- lsms_library/countries/Ethiopia/2018-19/_/household_characteristics.py +0 -24
- lsms_library/countries/Ethiopia/2018-19/_/other_features.py +0 -31
- lsms_library/countries/Ethiopia/_/household_characteristics.py +0 -50
- lsms_library/countries/Ethiopia/_/other_features.py +0 -66
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/Aggregat.doc +0 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3DEOMAN.DOC +0 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3INTMAN.DOC +0 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3QPartA.doc +0 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3QPartB.doc +0 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3QPrice.doc +0 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3REPORT.DOC +0 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3SUPMAN.DOC +0 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3USERSG.DOC +0 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/G3qcomm.doc +0 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/Povprof.doc +0 -0
- lsms_library/countries/GhanaLSS/1991-92/Documentation/Glss3 qsts and manuals docs/overview_glss3.doc +0 -0
- lsms_library/countries/GhanaLSS/2012-13/Documentation/Notes on how glss6 compares with other glss.docx +0 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/7GLSS7 SECTION 10.docx +0 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/7GLSS7_Community Quest.docx +0 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/COVER PAGE _PRICE.docx +0 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/DIARY.doc +0 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/GLSS7 Final Manual.docx +0 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/GLSS7_MODULE A_30_9_16_for print.docx +0 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/GLSS7_MODULE B _14_10_16.docx +0 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/GPS Module 13_28_4_17.docx +0 -0
- lsms_library/countries/GhanaLSS/2016-17/Documentation/Supervisors' manual_GLSS7.doc +0 -0
- lsms_library/countries/GhanaLSS/_/household_characteristics.py +0 -51
- lsms_library/countries/GhanaLSS/_/other_features.py +0 -54
- lsms_library/countries/GhanaSPS/2009-10/_/household_characteristics.py +0 -25
- lsms_library/countries/GhanaSPS/2009-10/_/other_features.py +0 -27
- lsms_library/countries/GhanaSPS/2013-14/Documentation/ISSER_Yale_Community Survey_WAVE II.docx +0 -0
- lsms_library/countries/GhanaSPS/2013-14/Documentation/ISSER_Yale_Part A_WAVE II.docx +0 -0
- lsms_library/countries/GhanaSPS/2013-14/Documentation/ISSER_Yale_Part B_WAVE II.docx +0 -0
- lsms_library/countries/GhanaSPS/2013-14/_/household_characteristics.py +0 -24
- lsms_library/countries/GhanaSPS/2013-14/_/other_features.py +0 -31
- lsms_library/countries/GhanaSPS/2017-18/Documentation/Questionnaire/HH_Questionnaire_23_10.docx +0 -0
- lsms_library/countries/GhanaSPS/2017-18/_/household_characteristics.py +0 -24
- lsms_library/countries/GhanaSPS/2017-18/_/other_features.py +0 -28
- lsms_library/countries/GhanaSPS/_/household_characteristics.py +0 -51
- lsms_library/countries/GhanaSPS/_/other_features.py +0 -50
- lsms_library/countries/Guatemala/2000/_/household_characteristics.py +0 -29
- lsms_library/countries/Guatemala/2000/_/other_features.py +0 -35
- lsms_library/countries/Guatemala/_/household_characteristics.py +0 -26
- lsms_library/countries/Guatemala/_/other_features.py +0 -17
- lsms_library/countries/Malawi/2004-05/_/household_characteristics.py +0 -26
- lsms_library/countries/Malawi/2004-05/_/other_features.py +0 -18
- lsms_library/countries/Malawi/2010-11/_/household_characteristics.py +0 -19
- lsms_library/countries/Malawi/2010-11/_/other_features.py +0 -20
- lsms_library/countries/Malawi/2013-14/_/household_characteristics.py +0 -19
- lsms_library/countries/Malawi/2013-14/_/other_features.py +0 -23
- lsms_library/countries/Malawi/2016-17/_/household_characteristics.py +0 -20
- lsms_library/countries/Malawi/2016-17/_/other_features.py +0 -28
- lsms_library/countries/Malawi/2019-20/_/household_characteristics.py +0 -20
- lsms_library/countries/Malawi/2019-20/_/other_features.py +0 -29
- lsms_library/countries/Malawi/_/household_characteristics.py +0 -24
- lsms_library/countries/Malawi/_/other_features.py +0 -17
- lsms_library/countries/Niger/2018-19/_/household_characteristics.py +0 -40
- lsms_library/countries/Nigeria/2010-11/_/food_expenditures.py +0 -185
- lsms_library/countries/Nigeria/2012-13/_/food_expenditures.py +0 -167
- lsms_library/countries/Nigeria/2015-16/_/food_expenditures.py +0 -168
- lsms_library/countries/Nigeria/2018-19/_/food_expenditures.py +0 -176
- lsms_library/countries/Nigeria/_/food_expenditures.py +0 -24
- lsms_library/countries/Nigeria/_/food_items.json +0 -1
- lsms_library/countries/Nigeria/_/food_items.org +0 -420
- lsms_library/countries/Nigeria/_/food_items0.org +0 -138
- lsms_library/countries/Nigeria/_/household_characteristics.py +0 -11
- lsms_library/countries/Panama/1997/_/household_characteristics.py +0 -35
- lsms_library/countries/Panama/1997/_/other_features.py +0 -26
- lsms_library/countries/Panama/2003/_/household_characteristics.py +0 -36
- lsms_library/countries/Panama/2003/_/other_features.py +0 -27
- lsms_library/countries/Panama/2008/_/household_characteristics.py +0 -36
- lsms_library/countries/Panama/2008/_/other_features.py +0 -30
- lsms_library/countries/Panama/_/household_characteristics.py +0 -22
- lsms_library/countries/Panama/_/other_features.py +0 -22
- lsms_library/countries/Senegal/2018-19/_/household_characteristics.py +0 -42
- lsms_library/countries/Senegal/2018-19/_/other_features.py +0 -30
- lsms_library/countries/Senegal/_/household_characteristics.py +0 -25
- lsms_library/countries/Senegal/_/other_features.py +0 -17
- lsms_library/countries/Serbia/2007/_/household_characteristics.py +0 -28
- lsms_library/countries/Serbia/2007/_/other_features.py +0 -24
- lsms_library/countries/Serbia/_/household_characteristics.py +0 -24
- lsms_library/countries/Serbia/_/other_features.py +0 -20
- lsms_library/countries/Tanzania/2008-15/_/household_characteristics.py +0 -58
- lsms_library/countries/Tanzania/2008-15/_/other_features.py +0 -27
- lsms_library/countries/Tanzania/2019-20/Documentation/TZA_2019_NPS-SDD_v06_M.xml +0 -87449
- lsms_library/countries/Tanzania/2019-20/_/household_characteristics.py +0 -32
- lsms_library/countries/Tanzania/2019-20/_/other_features.py +0 -40
- lsms_library/countries/Tanzania/2020-21/_/household_characteristics.py +0 -31
- lsms_library/countries/Tanzania/2020-21/_/other_features.py +0 -25
- lsms_library/countries/Tanzania/_/household_characteristics.py +0 -48
- lsms_library/countries/Tanzania/_/other_features.py +0 -34
- lsms_library/countries/Tanzania_Kegera/2004-05/Documentation/TZA_2004_KHDS_v01_M.xml +0 -83466
- lsms_library/countries/Togo/2018/_/household_characteristics.py +0 -50
- lsms_library/countries/Uganda/2005-06/_/household_characteristics.py +0 -20
- lsms_library/countries/Uganda/2005-06/_/housing.py +0 -29
- lsms_library/countries/Uganda/2005-06/_/other_features.py +0 -37
- lsms_library/countries/Uganda/2009-10/_/household_characteristics.py +0 -17
- lsms_library/countries/Uganda/2009-10/_/housing.py +0 -31
- lsms_library/countries/Uganda/2009-10/_/other_features.py +0 -36
- lsms_library/countries/Uganda/2010-11/_/household_characteristics.py +0 -17
- lsms_library/countries/Uganda/2010-11/_/housing.py +0 -32
- lsms_library/countries/Uganda/2010-11/_/other_features.py +0 -36
- lsms_library/countries/Uganda/2011-12/_/household_characteristics.py +0 -17
- lsms_library/countries/Uganda/2011-12/_/housing.py +0 -31
- lsms_library/countries/Uganda/2011-12/_/other_features.py +0 -36
- lsms_library/countries/Uganda/2013-14/_/household_characteristics.py +0 -17
- lsms_library/countries/Uganda/2013-14/_/housing.py +0 -31
- lsms_library/countries/Uganda/2013-14/_/other_features.py +0 -37
- lsms_library/countries/Uganda/2015-16/_/household_characteristics.py +0 -19
- lsms_library/countries/Uganda/2015-16/_/housing.py +0 -33
- lsms_library/countries/Uganda/2015-16/_/other_features.py +0 -35
- lsms_library/countries/Uganda/2018-19/_/household_characteristics.py +0 -23
- lsms_library/countries/Uganda/2018-19/_/housing.py +0 -32
- lsms_library/countries/Uganda/2018-19/_/other_features.py +0 -31
- lsms_library/countries/Uganda/2019-20/_/household_characteristics.py +0 -20
- lsms_library/countries/Uganda/2019-20/_/housing.py +0 -31
- lsms_library/countries/Uganda/2019-20/_/other_features.py +0 -36
- lsms_library/countries/Uganda/_/household_characteristics.py +0 -39
- lsms_library/countries/Uganda/_/housing.py +0 -36
- lsms_library/countries/Uganda/_/other_features.py +0 -51
- lsms_library-0.2.10.dev0.dist-info/METADATA +0 -290
- /lsms_library/countries/Albania/2008/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Albania/2012/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Azerbaijan/1995/{Documentation /LICENSE .org → Documentation/LICENSE.org} +0 -0
- /lsms_library/countries/Azerbaijan/1995/{Documentation → Documentation}/SOURCE.org +0 -0
- /lsms_library/countries/Burkina_Faso/2014/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Burkina_Faso/2014/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Burkina_Faso/2018-19/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Burkina_Faso/2018-19/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Burkina_Faso/2021-22/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Burkina_Faso/2021-22/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Cambodia/2019-20/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Cambodia/2019-20/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/China/1995-97/Documentation/{LICENSE .org → LICENSE.org} +0 -0
- /lsms_library/countries/CotedIvoire/1985-86/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/CotedIvoire/1985-86/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/CotedIvoire/1986-87/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/CotedIvoire/1986-87/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/CotedIvoire/1987-88/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/CotedIvoire/1987-88/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/CotedIvoire/1988-89/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/CotedIvoire/1988-89/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/CotedIvoire/2018-19/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/CotedIvoire/2018-19/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Ethiopia/2011-12/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Ethiopia/2013-14/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Ethiopia/2015-16/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Ethiopia/2018-19/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Ethiopia/2018-19/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/GhanaLSS/1987-88/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/GhanaLSS/1987-88/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/GhanaLSS/1988-89/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/GhanaLSS/1988-89/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/GhanaLSS/1991-92/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/GhanaLSS/1991-92/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/GhanaLSS/1998-99/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/GhanaLSS/1998-99/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/GhanaLSS/2005-06/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/GhanaLSS/2005-06/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/GhanaLSS/2012-13/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/GhanaLSS/2012-13/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/GhanaLSS/2016-17/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/GhanaLSS/2016-17/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/GhanaSPS/2009-10/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/GhanaSPS/2009-10/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Liberia/2018-19/Documentation/{LICENSE .org → LICENSE.org} +0 -0
- /lsms_library/countries/Liberia/2018-19/Documentation/{Reports .org → Reports.org} +0 -0
- /lsms_library/countries/Malawi/2004-05/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Malawi/2004-05/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Malawi/2010-11/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Malawi/2010-11/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Malawi/2013-14/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Malawi/2013-14/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Malawi/2016-17/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Malawi/2016-17/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Malawi/2019-20/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Malawi/2019-20/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Mali/2014-15/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Mali/2014-15/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Mali/2017-18/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Mali/2017-18/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Mali/2018-19/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Mali/2018-19/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Mali/2021-22/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Mali/2021-22/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Nepal/1995-96/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Nepal/2003-04/Documentation/{Source .org → Source.org} +0 -0
- /lsms_library/countries/Niger/2014-15/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Niger/2014-15/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Niger/2018-19/Documentation/{LICENSE .org → LICENSE.org} +0 -0
- /lsms_library/countries/Nigeria/2010-11/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Nigeria/2010-11/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Nigeria/2012-13/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Nigeria/2012-13/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Nigeria/2015-16/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Nigeria/2015-16/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Nigeria/2018-19/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Nigeria/2018-19/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Nigeria/2023-24/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Nigeria/2023-24/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Rwanda/2000-01/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Rwanda/2005-06/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Tanzania/2008-15/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Tanzania/2008-15/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Tanzania/2019-20/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Tanzania/2019-20/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Tanzania/2020-21/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Tanzania/2020-21/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Tanzania_Kegera/2004-05/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Tanzania_Kegera/2004-05/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Tanzania_Kegera/2010-11/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Tanzania_Kegera/2010-11/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Togo/2018/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Togo/2018/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Uganda/2005-06/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Uganda/2005-06/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Uganda/2009-10/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Uganda/2009-10/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Uganda/2010-11/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Uganda/2010-11/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Uganda/2011-12/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Uganda/2011-12/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Uganda/2013-14/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Uganda/2013-14/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Uganda/2015-16/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Uganda/2015-16/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Uganda/2018-19/Documentation/{LICENSE → LICENSE.org} +0 -0
- /lsms_library/countries/Uganda/2018-19/Documentation/{SOURCE → SOURCE.org} +0 -0
- /lsms_library/countries/Uganda/2019-20/Documentation/{SOURCE → SOURCE.org} +0 -0
- {lsms_library-0.2.10.dev0.dist-info → lsms_library-0.7.0.dist-info/licenses}/LICENSE.txt +0 -0
lsms_library/ISSUES.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Open Issues
|
|
2
|
+
|
|
3
|
+
Items that need attention. Resolved items are removed; use `git log` for history.
|
|
4
|
+
Actionable items should also be filed on GitHub (`gh issue list --repo ligon/LSMS_Library`).
|
|
5
|
+
## 2026-04-12 14:02:27Z Nepal – sample
|
|
6
|
+
|
|
7
|
+
- Waves: 1995-96, 2003-04, 2010-11
|
|
8
|
+
- Error: `PathMissingError: The path '/home/ligon/Projects/LSMS_Library/lsms_library/countries/Nepal/1995-96/Data/../Data/c1_nlss_public.dta' does not exist in the target repository '/home/ligon/Projects/LSMS_Library/lsms_library/countries/Nepal/1995-96/Data/../Data/c1_nlss_public.dta' neither as a DVC output nor as a Git-tracked file.`
|
|
9
|
+
|
lsms_library/Makefile
CHANGED
|
@@ -4,21 +4,42 @@
|
|
|
4
4
|
|
|
5
5
|
.SILENT: help
|
|
6
6
|
|
|
7
|
+
empty :=
|
|
8
|
+
space := $(empty) $(empty)
|
|
9
|
+
|
|
10
|
+
PYTHON ?= python3
|
|
11
|
+
DVC ?= $(PYTHON) -m dvc
|
|
12
|
+
format ?= parquet
|
|
13
|
+
|
|
14
|
+
slug = $(shell printf '%s' "$(1)" | tr '[:upper:]' '[:lower:]' | tr ' -' '__')
|
|
15
|
+
DEFAULT_WAVE_RAW := $(if $(strip $(wave)),$(firstword $(wave)),all_waves)
|
|
16
|
+
DEFAULT_WAVE := $(subst $(space),_,$(strip $(DEFAULT_WAVE_RAW)))
|
|
17
|
+
OUT_FILE ?= countries/build/$(country)/$(DEFAULT_WAVE)/$(table).$(format)
|
|
18
|
+
stage_name = $(call slug,$(country))_$(call slug,$(DEFAULT_WAVE_RAW))_$(call slug,$(table))
|
|
19
|
+
|
|
20
|
+
|
|
7
21
|
COUNTRIES := $(shell ls .. | grep -e ^[A-Z] | grep / | sed -e 's/\//,/g')
|
|
8
22
|
|
|
9
23
|
help:
|
|
10
24
|
echo "USAGE:"
|
|
11
|
-
echo "Either <test> or <build> datasets or estimate <demands>"
|
|
25
|
+
echo "Either <test> or <build> datasets, <materialize>/<persist> tables, <register> stages, or estimate <demands>"
|
|
12
26
|
echo "for a particular country using, e.g.,"
|
|
13
27
|
echo " make test country=Malawi"
|
|
14
28
|
echo "or"
|
|
15
29
|
echo " make build country=Malawi"
|
|
16
30
|
echo "or"
|
|
17
|
-
echo " make demands country=Malawi"
|
|
31
|
+
echo " make demands country=Malawi market=Region"
|
|
32
|
+
echo "or"
|
|
33
|
+
echo " make materialize country=Malawi wave=2019-20 table=household_roster"
|
|
34
|
+
echo "or"
|
|
35
|
+
echo " make persist country=Malawi wave=2019-20 table=household_roster"
|
|
36
|
+
echo "or"
|
|
37
|
+
echo " make register country=Uganda wave=2023-24 table=household_roster"
|
|
18
38
|
echo ""
|
|
19
39
|
echo "where country is one of:"
|
|
20
40
|
echo $(COUNTRIES)
|
|
21
41
|
|
|
42
|
+
|
|
22
43
|
build:
|
|
23
44
|
echo $(country)
|
|
24
45
|
+make -C ../$(country)/_
|
|
@@ -26,8 +47,26 @@ build:
|
|
|
26
47
|
test:
|
|
27
48
|
./harmony.py $(country)
|
|
28
49
|
|
|
29
|
-
|
|
30
|
-
|
|
50
|
+
materialize:
|
|
51
|
+
$(PYTHON) -m lsms_library.cli materialize \
|
|
52
|
+
$(if $(strip $(wave)),$(foreach w,$(wave),--wave $(w) ),$(if $(strip $(all_waves)),--all-waves ,))\
|
|
53
|
+
--country $(country) \
|
|
54
|
+
--table $(table) \
|
|
55
|
+
--format $(format) \
|
|
56
|
+
--out $(OUT_FILE)
|
|
57
|
+
|
|
58
|
+
register:
|
|
59
|
+
$(PYTHON) -m lsms_library.cli register \
|
|
60
|
+
--country $(country) \
|
|
61
|
+
--wave $(wave) \
|
|
62
|
+
--table $(table) \
|
|
63
|
+
--format $(format)
|
|
64
|
+
|
|
65
|
+
persist:
|
|
66
|
+
cd countries && $(DVC) repro materialize@$(stage_name)
|
|
67
|
+
|
|
68
|
+
demands:
|
|
69
|
+
$(PYTHON) -m lsms_library.demands $(country) $(if $(market),--market $(market),)
|
|
31
70
|
|
|
32
71
|
clean:
|
|
33
72
|
+make -C ../$(country)/_ clean
|
lsms_library/__init__.py
CHANGED
|
@@ -1,13 +1,184 @@
|
|
|
1
|
+
"""LSMS Library: a harmonized interface to Living Standards Measurement Study data.
|
|
2
|
+
|
|
3
|
+
The library provides a uniform API across 40+ LSMS-ISA and related
|
|
4
|
+
household surveys from the World Bank Microdata Library. Its design
|
|
5
|
+
principle is to harmonize the *interface*, not the data: surveys differ
|
|
6
|
+
in structure, and the library preserves survey-specific detail while
|
|
7
|
+
offering a common way to read it.
|
|
8
|
+
|
|
9
|
+
Typical usage
|
|
10
|
+
-------------
|
|
11
|
+
Instantiate a :class:`Country` and call its table methods as attributes.
|
|
12
|
+
Table names (``food_acquired``, ``household_roster``, ``shocks``, ...)
|
|
13
|
+
come from the country's ``data_scheme.yml``.
|
|
14
|
+
|
|
15
|
+
.. code-block:: python
|
|
16
|
+
|
|
17
|
+
import lsms_library as ll
|
|
18
|
+
|
|
19
|
+
uga = ll.Country('Uganda')
|
|
20
|
+
uga.waves # ['2005-06', '2009-10', ...]
|
|
21
|
+
uga.data_scheme # ['household_roster', 'food_acquired', ...]
|
|
22
|
+
|
|
23
|
+
roster = uga.household_roster() # harmonized DataFrame across waves
|
|
24
|
+
food = uga.food_expenditures() # derived from food_acquired
|
|
25
|
+
chars = uga.household_characteristics() # derived from household_roster
|
|
26
|
+
|
|
27
|
+
:class:`Feature` assembles the same table across every country that
|
|
28
|
+
declares it, with a ``country`` index level prepended:
|
|
29
|
+
|
|
30
|
+
.. code-block:: python
|
|
31
|
+
|
|
32
|
+
df = ll.Feature('household_roster')() # every country
|
|
33
|
+
df = ll.Feature('shocks')(['Ethiopia', 'Niger']) # subset
|
|
34
|
+
|
|
35
|
+
Returned DataFrames are indexed by some subset of ``(country, t, v, i,
|
|
36
|
+
pid, j)`` — wave (``t``), cluster (``v``), household (``i``), person
|
|
37
|
+
(``pid``), item (``j``) — depending on the table.
|
|
38
|
+
|
|
39
|
+
Public API
|
|
40
|
+
----------
|
|
41
|
+
- :class:`Country` — top-level per-country interface. Exposes ``waves``,
|
|
42
|
+
``data_scheme``, and one method per table in the scheme. Derived
|
|
43
|
+
tables (``household_characteristics``, ``food_expenditures``,
|
|
44
|
+
``food_prices``, ``food_quantities``) are dispatched via
|
|
45
|
+
``__getattr__`` without needing to be in ``data_scheme.yml``.
|
|
46
|
+
- :class:`Wave` — single-wave view of a country, used internally by
|
|
47
|
+
:class:`Country` but occasionally handy for debugging.
|
|
48
|
+
- :class:`Feature` — cross-country aggregator for a given table name.
|
|
49
|
+
- ``tools`` (alias for :mod:`lsms_library.local_tools`) — ``get_dataframe``
|
|
50
|
+
for reading ``.dta``/``.csv``/``.parquet`` with local → DVC → WB NADA
|
|
51
|
+
fallback, ``to_parquet`` for writing caches under ``data_root()``, and
|
|
52
|
+
the ``df_data_grabber`` helper used by wave-level scripts.
|
|
53
|
+
- :func:`authenticate` — interactive DVC/S3 credential unlock. Usually
|
|
54
|
+
runs automatically on import when a World Bank Microdata API key is
|
|
55
|
+
available.
|
|
56
|
+
- :mod:`lsms_library.transformations` — derivation helpers for
|
|
57
|
+
roster-to-characteristics and food-to-expenditures.
|
|
58
|
+
|
|
59
|
+
Data access and caching
|
|
60
|
+
-----------------------
|
|
61
|
+
Reads use a fallback chain: local file on disk → DVC filesystem → World
|
|
62
|
+
Bank NADA download. Parquet caches are written under ``data_root()``,
|
|
63
|
+
which defaults to ``~/.local/share/lsms_library/{Country}/`` and can be
|
|
64
|
+
overridden via ``LSMS_DATA_DIR`` or the ``data_dir`` key in
|
|
65
|
+
``~/.config/lsms_library/config.yml``.
|
|
66
|
+
|
|
67
|
+
As of v0.7.0, :meth:`Country` methods check the parquet cache before
|
|
68
|
+
consulting DVC, giving 10–17× cross-process speedups. The cache has no
|
|
69
|
+
automatic staleness check — set ``LSMS_NO_CACHE=1`` or run
|
|
70
|
+
``lsms-library cache clear --country {Country}`` after editing source
|
|
71
|
+
configs or scripts.
|
|
72
|
+
|
|
73
|
+
Environment variables
|
|
74
|
+
---------------------
|
|
75
|
+
- ``MICRODATA_API_KEY`` — World Bank Microdata Library API key (also
|
|
76
|
+
readable from ``~/.config/lsms_library/config.yml``). Required for
|
|
77
|
+
direct downloads; also unlocks the S3 read cache at import time.
|
|
78
|
+
- ``LSMS_DATA_DIR`` — override the parquet cache root.
|
|
79
|
+
- ``LSMS_NO_CACHE`` — disable the v0.7.0 top-of-function cache read.
|
|
80
|
+
- ``LSMS_BUILD_BACKEND=make`` — force rebuild from source, bypassing
|
|
81
|
+
both the cache and the DVC stage layer.
|
|
82
|
+
- ``LSMS_SKIP_AUTH`` — suppress the import-time authentication attempt.
|
|
83
|
+
|
|
84
|
+
Further reading
|
|
85
|
+
---------------
|
|
86
|
+
- ``CLAUDE.md`` at the repository root for contributor-facing design
|
|
87
|
+
notes, the canonical schema (``lsms_library/data_info.yml``), and the
|
|
88
|
+
list of cross-cutting gotchas.
|
|
89
|
+
- ``.claude/skills/add-feature/`` for adding a new table to a country,
|
|
90
|
+
with sub-skills for ``sample``, ``shocks``, ``assets``,
|
|
91
|
+
``panel-ids``, ``food-acquired``, and ``pp-ph`` (post-planting /
|
|
92
|
+
post-harvest countries).
|
|
93
|
+
- ``CONTRIBUTING.org`` for the new-wave workflow.
|
|
94
|
+
|
|
95
|
+
Data terms of use
|
|
96
|
+
-----------------
|
|
97
|
+
Underlying microdata must be obtained from the World Bank Microdata
|
|
98
|
+
Library (https://microdata.worldbank.org/) under their terms of use.
|
|
99
|
+
The library's S3 bucket is a read cache over the authoritative WB NADA
|
|
100
|
+
downloads, unlocked automatically when a valid API key is present.
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
104
|
+
|
|
105
|
+
try:
|
|
106
|
+
__version__ = version("LSMS_Library")
|
|
107
|
+
except PackageNotFoundError:
|
|
108
|
+
__version__ = "0.0.0"
|
|
109
|
+
|
|
110
|
+
from pathlib import Path
|
|
111
|
+
import os
|
|
112
|
+
import warnings
|
|
113
|
+
|
|
114
|
+
import logging
|
|
115
|
+
from sys import stderr
|
|
1
116
|
from . import country
|
|
2
|
-
from .
|
|
117
|
+
from .country import Country, Wave
|
|
118
|
+
from .feature import Feature
|
|
3
119
|
from . import local_tools as tools
|
|
4
|
-
from .categorical_mapping import ai_agent
|
|
5
120
|
from . import transformations
|
|
6
121
|
from .dvc_permissions import authenticate
|
|
122
|
+
try:
|
|
123
|
+
from dvc.ui import ui as dvc_ui
|
|
124
|
+
from dvc.logger import LoggerHandler, setup as dvc_log_setup
|
|
125
|
+
from functools import wraps
|
|
126
|
+
import sys
|
|
7
127
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
128
|
+
if hasattr(dvc_ui, "rich_console"):
|
|
129
|
+
try:
|
|
130
|
+
dvc_ui.rich_console.file = stderr
|
|
131
|
+
except Exception:
|
|
132
|
+
pass
|
|
133
|
+
if hasattr(dvc_ui, "error_console"):
|
|
134
|
+
try:
|
|
135
|
+
dvc_ui.error_console.file = stderr
|
|
136
|
+
except Exception:
|
|
137
|
+
pass
|
|
138
|
+
original_init = LoggerHandler.__init__
|
|
139
|
+
|
|
140
|
+
@wraps(original_init)
|
|
141
|
+
def _patched_logger_handler_init(self, stream, *args, **kwargs):
|
|
142
|
+
if stream is sys.stdout:
|
|
143
|
+
stream = stderr
|
|
144
|
+
original_init(self, stream, *args, **kwargs)
|
|
145
|
+
|
|
146
|
+
LoggerHandler.__init__ = _patched_logger_handler_init # type: ignore[assignment]
|
|
147
|
+
|
|
148
|
+
dvc_log_setup()
|
|
149
|
+
for logger_name in ("dvc", "dvc_objects", "dvc_data", ""):
|
|
150
|
+
logger_obj = logging.getLogger(logger_name)
|
|
151
|
+
for handler in logger_obj.handlers:
|
|
152
|
+
if isinstance(handler, LoggerHandler) and getattr(handler, "stream", None) is not stderr:
|
|
153
|
+
handler.stream = stderr
|
|
154
|
+
except Exception:
|
|
155
|
+
# DVC optional; if missing, proceed without UI tweaks
|
|
156
|
+
pass
|
|
157
|
+
|
|
158
|
+
from .config import s3_creds_path as _s3_creds_path
|
|
159
|
+
creds_file = _s3_creds_path()
|
|
160
|
+
|
|
161
|
+
SKIP_AUTH = os.getenv("LSMS_SKIP_AUTH", "").lower() in {"1", "true", "yes"}
|
|
13
162
|
|
|
163
|
+
if not SKIP_AUTH and not creds_file.exists():
|
|
164
|
+
# Try non-interactive S3 unlock first. This only decrypts the local
|
|
165
|
+
# s3_reader_creds.gpg — no network call required. WB API key validation
|
|
166
|
+
# (which requires a network round-trip to microdata.worldbank.org) is
|
|
167
|
+
# deferred until the first actual data access via permissions() in
|
|
168
|
+
# data_access.py. This keeps ``import lsms_library`` fast.
|
|
169
|
+
try:
|
|
170
|
+
from .data_access import _auto_unlock_s3 as _unlock
|
|
171
|
+
_unlocked = _unlock()
|
|
172
|
+
if not _unlocked:
|
|
173
|
+
# Local GPG decryption failed or no .gpg file — fall back to
|
|
174
|
+
# interactive passphrase prompt.
|
|
175
|
+
raise RuntimeError("auto-unlock did not produce S3 credentials")
|
|
176
|
+
except Exception:
|
|
177
|
+
try:
|
|
178
|
+
authenticate()
|
|
179
|
+
except Exception as exc:
|
|
180
|
+
warnings.warn(
|
|
181
|
+
f"Automatic DVC authentication failed: {exc}. "
|
|
182
|
+
"Set LSMS_SKIP_AUTH=1 to suppress, or set "
|
|
183
|
+
"MICRODATA_API_KEY for non-interactive access."
|
|
184
|
+
)
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
"""GPT-based helper for suggesting categorical harmonization mappings.
|
|
2
|
+
|
|
3
|
+
Experimental tooling that sends a DataFrame of raw survey labels to an
|
|
4
|
+
OpenAI chat model and asks it to propose canonical "Preferred Label"
|
|
5
|
+
matches. Used as a drafting aid for maintainers filling out the
|
|
6
|
+
``#+NAME: harmonize_food`` and ``#+NAME: unit`` tables in a country's
|
|
7
|
+
``categorical_mapping.org``. Output is always reviewed by a human before
|
|
8
|
+
being committed — the library itself never calls this module at runtime.
|
|
9
|
+
|
|
10
|
+
Requires the ``openai`` package and an API key (set via the ``api_key``
|
|
11
|
+
module-level variable or looked up from ``authinfo``). Not part of the
|
|
12
|
+
public API and not loaded by :mod:`lsms_library.__init__` unless
|
|
13
|
+
explicitly imported.
|
|
14
|
+
"""
|
|
2
15
|
import pandas as pd
|
|
3
16
|
from ligonlibrary import authinfo
|
|
4
17
|
import openai
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
"""String-similarity helpers for drafting categorical mapping tables.
|
|
2
|
+
|
|
3
|
+
Lightweight NLP utilities used when bootstrapping a country's
|
|
4
|
+
``categorical_mapping.org`` from raw survey labels. The main operations
|
|
5
|
+
are:
|
|
6
|
+
|
|
7
|
+
- :func:`regularize_string` — strip accents, lowercase, and spell-check
|
|
8
|
+
via TextBlob so that "Sécheresse" and "secheresse" land in the same
|
|
9
|
+
bucket before similarity scoring.
|
|
10
|
+
- :func:`preprocess` / :func:`get_label_vector` — turn a list of raw
|
|
11
|
+
labels into feature vectors keyed on cleaned tokens.
|
|
12
|
+
- :func:`get_cosine_similarity` — score two label vectors so the
|
|
13
|
+
maintainer can propose the highest-ranked canonical label for each
|
|
14
|
+
raw variant.
|
|
15
|
+
|
|
16
|
+
Like :mod:`.ai_agent`, this is a drafting aid for maintainers — the
|
|
17
|
+
library does not call these functions at runtime, and the output is
|
|
18
|
+
always reviewed by a human before being committed.
|
|
19
|
+
"""
|
|
1
20
|
import pandas as pd
|
|
2
21
|
import numpy as np
|
|
3
22
|
import re
|