Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
548 commits
Select commit Hold shift + click to select a range
fbc90c7
Delete S-59-Ratifications_20200828165128.xls
m-g-d-c Sep 8, 2020
7edf75e
Delete S-59-Ratifications_20200828165032.xls
m-g-d-c Sep 8, 2020
7248cc0
Delete WORLD_Dataset_Poverty_3.9.15.xls
m-g-d-c Sep 8, 2020
9772729
Delete WORLD_Dataset_Poverty_3.9.15.dta
m-g-d-c Sep 8, 2020
16fba0f
Delete WORLD Poverty Public Use Data Dictionary.pdf
m-g-d-c Sep 8, 2020
1629840
Delete S-37, S-38, S-39.xlsx
m-g-d-c Sep 8, 2020
eb4d925
Delete S-3-Ratifications_20200828165211.xls
m-g-d-c Sep 8, 2020
4f2261a
Delete S-189 idmc_displacement_all_dataset.xlsx
m-g-d-c Sep 8, 2020
7d4a3ea
Delete S-167 Pct_IP_CommunityLands.zip
m-g-d-c Sep 8, 2020
54138ec
Delete S-166 Registering Property.xlsx
m-g-d-c Sep 8, 2020
e40f544
Delete S-155, S-156 nrgi_data.csv
m-g-d-c Sep 8, 2020
359fa24
Delete S_101_normalized.xlsx
m-g-d-c Sep 8, 2020
93a6abd
Delete S_100_cleansed.xlsx
m-g-d-c Sep 8, 2020
738e295
Update .gitignore
m-g-d-c Sep 8, 2020
05bff53
WIP
jamescw Sep 17, 2020
4947930
remove folders data_raw, transformed, data_2_load, notebook extract t…
beto-Sibileau Sep 21, 2020
e0fe4e7
remove prototype notebooks from tmee folder
beto-Sibileau Sep 21, 2020
bda06ce
remove data_dictionary (to be placed inside data_in folder)
beto-Sibileau Sep 21, 2020
51b73da
add data_dictionary inside data_in folder
beto-Sibileau Sep 21, 2020
ea713f4
add country_names file to data_in folder
beto-Sibileau Sep 21, 2020
d6c6f1c
add legacy_data folder inside data_in
beto-Sibileau Sep 21, 2020
8b75b4b
requirements updated
beto-Sibileau Sep 21, 2020
e1df0b5
update transformation to process legacy data
beto-Sibileau Sep 21, 2020
956688b
new functions added, work on country names for legacy data
beto-Sibileau Sep 21, 2020
4d5850b
just comments adjusted
beto-Sibileau Sep 21, 2020
307c8d0
legacy data parser
beto-Sibileau Sep 21, 2020
c9ffe73
update notebook - parser of tmee indicators database
beto-Sibileau Sep 21, 2020
32dec30
data_out folder (etl outputs) - files writen by elt are kept ignored
beto-Sibileau Sep 21, 2020
ad93043
gitignore updated
beto-Sibileau Sep 21, 2020
5a0aa5c
minor updates
beto-Sibileau Sep 21, 2020
5b9460f
notebook with ETL process (helix & UIS from data dictionary) + legacy…
beto-Sibileau Sep 21, 2020
f888546
WIP refactor
jamescw Sep 24, 2020
bcf2b7a
WIP of main refactor
jamescw Oct 1, 2020
c16d459
Added SDMX extractor
jamescw Oct 2, 2020
881bac4
Merge branch 'refactor_tmee' into ETL_merge
jamescw Oct 7, 2020
68e49d7
updates on world bank indicators
beto-Sibileau Oct 8, 2020
4770cc5
git ignore update
beto-Sibileau Oct 8, 2020
51fac32
match legacy indicators name function added
beto-Sibileau Oct 8, 2020
0a30e40
requirements updated
beto-Sibileau Oct 8, 2020
49d199d
merge ETL_merge into my branch with resolved conflicts (keep refactor…
beto-Sibileau Oct 8, 2020
aa19800
notebook update sources WB, ILO
beto-Sibileau Oct 12, 2020
5bdb43b
git ignore updated
beto-Sibileau Oct 12, 2020
67bdeb1
data dictionary folder no longer exists in tmee folder but in data_in
beto-Sibileau Oct 12, 2020
313fc04
requirements updates
beto-Sibileau Oct 21, 2020
851162c
imports updated
beto-Sibileau Oct 21, 2020
91d5698
python black styling updated
beto-Sibileau Oct 21, 2020
fbdab02
pyhton debugging config
beto-Sibileau Oct 21, 2020
cd26608
git ignore updated
beto-Sibileau Oct 21, 2020
c55b32c
first steps refactoring main notebook
beto-Sibileau Oct 21, 2020
8b5d5e8
test: do not ignore .vs folder
beto-Sibileau Oct 21, 2020
f09fb39
files in .vs folder added
beto-Sibileau Oct 21, 2020
412312e
requirements added
beto-Sibileau Nov 4, 2020
784bb82
python devcontainer settings updated
beto-Sibileau Nov 4, 2020
dfd2244
python file with validation functions created
beto-Sibileau Nov 4, 2020
701328f
notebook for validation prototype
beto-Sibileau Nov 4, 2020
421cd7e
TMEE new Data Collection Template in Excel
beto-Sibileau Nov 4, 2020
814af70
Excel File with TMEE Validation Rules for new Data Collection
beto-Sibileau Nov 4, 2020
d366308
git ignore updated
beto-Sibileau Nov 4, 2020
3b1a176
minor changes on data structure of column formulas
beto-Sibileau Nov 6, 2020
7a92698
get_totals_and_disag function added
beto-Sibileau Nov 6, 2020
cffd1b4
flow added to cover rules up to test number 15 included
beto-Sibileau Nov 6, 2020
c631e8a
update settings
beto-Sibileau Nov 17, 2020
85133fc
file contains long dictionaries used for code mapping
beto-Sibileau Nov 17, 2020
0a9517c
modifications to first load to TMEE WH
beto-Sibileau Nov 17, 2020
6a19fd4
set totals for helix api dimensions not in TMEE
beto-Sibileau Nov 17, 2020
3aefe31
new column for coverage_time added in legacy parser
beto-Sibileau Nov 17, 2020
1a32cca
function added to wrap indicators codelist (third-party api + legacy)
beto-Sibileau Nov 17, 2020
2b33224
update sdmx_dims function, searching for dimensions not in TMEE dsd
beto-Sibileau Nov 17, 2020
86a7bf6
wash, ecd new indicators, update some uis address to avoid duplicates…
beto-Sibileau Nov 17, 2020
f3b6a04
remove country_map and country_names_map py files, now in codes_2_map
beto-Sibileau Nov 17, 2020
a82f952
just comments
beto-Sibileau Nov 17, 2020
0308672
new notebook version updated for first data load by Daniele
beto-Sibileau Nov 17, 2020
148ebc5
val functions added disabilities, stock and flows, category other, an…
beto-Sibileau Nov 17, 2020
d8282c7
validation excel file updated (formulas to parse)
beto-Sibileau Nov 17, 2020
48b7f68
disabilities, stock and flows, category others. Added on NB remaining…
beto-Sibileau Nov 17, 2020
c21a2c4
git ignore updated
beto-Sibileau Nov 17, 2020
772c06a
added no limits to jupyter text output (note lots of text may influen…
beto-Sibileau Jan 15, 2021
5d673b3
prototype notebook to populate data dictionary from TM revised DB in …
beto-Sibileau Jan 15, 2021
ec9d358
added funcion data_reader, and get_close_match_indexes. Modified get_…
beto-Sibileau Jan 15, 2021
001f46d
table from UNSD to include country codes M49 (not present in file all…
beto-Sibileau Jan 15, 2021
bd2d244
new version of data dictionary (updated all up to Education)
beto-Sibileau Jan 15, 2021
09d6927
modification of indicator names to match new version of legacy data N…
beto-Sibileau Jan 15, 2021
dcbda09
new version of legacy metadata contains modifications to provide clea…
beto-Sibileau Jan 15, 2021
8b7beab
added function match_indicator_names to provide user with a list of i…
beto-Sibileau Jan 15, 2021
d78cade
legacy data november 2020 version (dissemination format)
beto-Sibileau Jan 15, 2021
6647fa1
legacy data december 2020 version. Footnotes minor errors are usually…
beto-Sibileau Jan 15, 2021
9e25238
modifications to allocate API calls from SDG-UN and ILO SDMX rest ser…
beto-Sibileau Jan 15, 2021
a84f5d1
function get_ilo_dims added to work out ILO SDMX metadata call for da…
beto-Sibileau Jan 15, 2021
885cf49
added code mapping for country codes M49 (used by SDG-UN SDMX rest se…
beto-Sibileau Jan 15, 2021
1317729
added minor functionality in code mappings, which is used to ensure i…
beto-Sibileau Jan 15, 2021
445d20f
updates in mappings: M49 country codes included for UN-SDG dataflow, …
beto-Sibileau Jan 15, 2021
67fa286
function get_totals_and_others_v2 added
beto-Sibileau Jan 15, 2021
b1174c9
main notebook for validation updated
beto-Sibileau Jan 15, 2021
049fe11
gitignore updated
beto-Sibileau Jan 15, 2021
9343b1f
ETL notebook updated to allocate changes: new country codes m49 from …
beto-Sibileau Jan 15, 2021
7809852
updated notebook last part on codelists checks
beto-Sibileau Jan 20, 2021
a4faa66
data updated according to december 2020 dissemination update by flavio
beto-Sibileau Jan 20, 2021
22095f4
data dictionary minor update
beto-Sibileau Jan 20, 2021
ffe1eaa
code mapping for SDG SDMX dataflow added (FREQ)
beto-Sibileau Jan 20, 2021
e4a4049
added get_units_codelist function, modified get_codelist_API_legacy, …
beto-Sibileau Jan 20, 2021
922cd5d
folder: dev of TMEE bulk upload into RDM
beto-Sibileau Feb 4, 2021
9c5da6e
matplotlib added
beto-Sibileau Feb 4, 2021
606746a
child in res care rate: def A and B added by Flavio (dic 2020)
beto-Sibileau Feb 4, 2021
7bb542f
CL_AGE (last cell on age groups added)
beto-Sibileau Feb 4, 2021
20b0cc5
feed_rdm notebook to be placed in tmee root instead
beto-Sibileau Feb 4, 2021
c570e1e
feed_rdm notebook placed in tmee folder
beto-Sibileau Feb 4, 2021
9bb65b0
rdm feed nb dev
beto-Sibileau Feb 9, 2021
6ddd4dd
markdown change only, indicators count
beto-Sibileau Feb 9, 2021
439d85b
minor change to data dictionary query (two more columns)
beto-Sibileau Feb 9, 2021
a755417
rdm readme
beto-Sibileau Feb 9, 2021
40c1d83
new data dictionary version (revised label desc up to education), mod…
beto-Sibileau Feb 9, 2021
f519e95
data collection child protection, confirmed variables by Flavio as of…
beto-Sibileau Feb 9, 2021
971235f
notebook analytics on data collection
beto-Sibileau Feb 9, 2021
16dda8b
update data dictionary SAP and GER L02 education, more updates to come
beto-Sibileau Feb 11, 2021
98aece8
additions on education for dash, SAP and OFST for L1T3
beto-Sibileau Feb 11, 2021
48482d1
added ROFST L1T3 for edu plus working on UNPD, more to comme
beto-Sibileau Feb 11, 2021
b825e3a
updated data dictionary with UNPD population
beto-Sibileau Feb 24, 2021
6f9cbda
track SDMX codelists for TMEE indicators, age groups and units
beto-Sibileau Feb 25, 2021
ba838db
added TH_ENTRY_GLAST:Official entrance age to the last grade
beto-Sibileau Feb 25, 2021
be39457
added for edu dash: SAP_L2_GLAST, PRP_L2AND3, STU_L2AND3_PRV
beto-Sibileau Feb 25, 2021
1bf1052
indicators codelist updated with data dictionary v5
beto-Sibileau Feb 25, 2021
75ae15d
added (thousands) to DM_POP_TOT_AGE name description
beto-Sibileau Feb 25, 2021
f6cc017
added maps for new dataflow: UNPD_DEMOGRAPHY
beto-Sibileau Feb 25, 2021
d1e7f9f
update details about UNPD population nature in Value_Type 33
beto-Sibileau Feb 25, 2021
c8273ad
split strings from helix code:description updated (lambda applied onl…
beto-Sibileau Feb 26, 2021
5cbd097
added codelist folder in data out (track changes in indicator code/na…
beto-Sibileau Feb 26, 2021
aa1ec61
notebook updated: metadata for bulk upload into RDM
beto-Sibileau Feb 26, 2021
4a63d16
update main etl notebook (new data dictionary v5)
beto-Sibileau Feb 26, 2021
cd7b8d7
remove duplicates by data_source: method incorporated
beto-Sibileau Mar 2, 2021
f67263d
change code mapping before check duplicates (mostly for Helix source …
beto-Sibileau Mar 2, 2021
b4b5766
code comment: target source remove duplicates method
beto-Sibileau Mar 2, 2021
73c785d
minor updates for web scrape WHO immunization (flagship indicators)
beto-Sibileau Mar 2, 2021
a58c1fe
notebook transformation of BDSS UIS source
beto-Sibileau Mar 12, 2021
d2a4ac1
git ignore
beto-Sibileau Mar 12, 2021
d83ffbe
added col map for web who imm, total mapping incomplete
beto-Sibileau Mar 12, 2021
f6aec49
added web who imm reader and web sources to data dictionary query
beto-Sibileau Mar 12, 2021
bf4172d
added multi index dependence for code mapping: not yet tested (Idea f…
beto-Sibileau Mar 12, 2021
b67e7d9
country mapping for who imm app to be completed
beto-Sibileau Mar 12, 2021
d7bbe83
notebook: added for extraction web scrape
beto-Sibileau Mar 12, 2021
ff08c15
added pandas not null for nan m49 country code requests (eg: kosovo)
beto-Sibileau Mar 12, 2021
c6d1cee
code mappings iso2 and m49 for all ecaro countries
beto-Sibileau Mar 12, 2021
f90ede6
git ignore
beto-Sibileau Mar 12, 2021
6766c64
updated notebook run ETL with TM + other ecaro countries
beto-Sibileau Mar 12, 2021
4292baa
value type changed for SDG suicide (age group droped by WHO in march …
beto-Sibileau Mar 25, 2021
6b88a26
updated with new indicators on net migration and social protection fl…
beto-Sibileau Mar 25, 2021
11fc0bd
added code mapping for who immunization app (web scrape)
beto-Sibileau Mar 26, 2021
223e4ae
added country maps and constants for who imm app (web scrape), suppre…
beto-Sibileau Mar 26, 2021
5ca07c8
minor changes, search ger indicators
beto-Sibileau Mar 26, 2021
b70e322
validation modifications for codelists added (empty dimensions)
beto-Sibileau Mar 26, 2021
2bbaa7f
added unit multiplier in values, changed to assign UNPD and NET MIGRA…
beto-Sibileau Mar 26, 2021
67779ea
added 15 new indicators, 12 for sdg 1.3.1, net migration and who immu…
beto-Sibileau Mar 26, 2021
6a43500
bring unit_multiplier from data dictionary query
beto-Sibileau Mar 26, 2021
ca755a5
bring unit_mult for UNPD from data dictionary since not properly set …
beto-Sibileau Mar 26, 2021
31c288d
bring unit_multiplier from data dictionary into ETL
beto-Sibileau Mar 26, 2021
255cf3e
search of updated data for learning outcomes, Sarah in BDSS
beto-Sibileau Apr 21, 2021
495a461
11 new indicators added for sitan (EC_NY_GDP_MKTP_KD_ZG, EC_NY_GDP_PC…
beto-Sibileau Apr 21, 2021
6d64ec7
added 10 new indicators (name and source, value type analysis remaini…
beto-Sibileau Apr 26, 2021
698fe82
complete value type from past commit, added 6 new name and sources (P…
beto-Sibileau Jun 1, 2021
ab2b6b9
value type analysis finished: 12 new PT: VC x7 and PT helix x5
beto-Sibileau Jun 1, 2021
2ca786e
11 new indicators, value type analysis missing: 5x chld marriage, 2x …
beto-Sibileau Jun 1, 2021
6705226
5 new indicators in justice, value type complete with previous remaining
beto-Sibileau Jun 2, 2021
11da141
extractions for cp tested ready for upload (includes also child right…
beto-Sibileau Jun 2, 2021
0d954d8
indicators added for Health System
beto-Sibileau Jun 8, 2021
f486ee7
indicators added for health (todo: eurostat and oecd)
beto-Sibileau Jun 10, 2021
2041cb0
added cell to treat CDDEM indicators outside ETL loop
beto-Sibileau Jun 10, 2021
e0c6ef7
data uploads for health on existing sources - CDDEM, eurostat and oec…
beto-Sibileau Jun 11, 2021
96753ef
treatment added for CDDEM in helix
beto-Sibileau Jun 14, 2021
2f9c1f1
data dictionary updates with sitan health
beto-Sibileau Jul 2, 2021
cbc728e
requirements updated
beto-Sibileau Jul 2, 2021
9001224
new dataflow mappings for estat and oecd. Modified web scrappping sou…
beto-Sibileau Jul 2, 2021
0ef65a2
new readers for estat and oecd. Modified reader for web scrappping WH…
beto-Sibileau Jul 2, 2021
f74b40d
data structure calls for estat and oecd sdmx country queries
beto-Sibileau Jul 2, 2021
a86b4ff
update on estat and oecd sources ETL, modified CDDEM into main loop
beto-Sibileau Jul 2, 2021
d3fc1fa
etl output file to track history of uploads
beto-Sibileau Jul 7, 2021
e5d2698
data dictionary with poverty up to date (child mics indicator revisio…
beto-Sibileau Jul 7, 2021
0770bfc
indicator codelist updated up to health
beto-Sibileau Jul 7, 2021
e26dd9a
dictionary, codelist and etl output up to poverty
beto-Sibileau Jul 7, 2021
f551cef
minor updates dealing with estat calls to dsd and timeouts in requests
beto-Sibileau Jul 7, 2021
7e95bcb
new dsd and mappings for ESTAT
beto-Sibileau Jul 7, 2021
c7fb332
minor updates in main notebook
beto-Sibileau Jul 7, 2021
7bc6962
data dictionary up to child rights landscape
beto-Sibileau Jul 13, 2021
7435468
call to undp and helix differentiate call if query present or not
beto-Sibileau Jul 13, 2021
7f087af
undp reader added - modify oecd multindex and column name conflict
beto-Sibileau Jul 13, 2021
191f112
added undp, helix migration, estat and oecd dataflows for child rights
beto-Sibileau Jul 13, 2021
537bebd
notebook updated to child rights sitan
beto-Sibileau Jul 13, 2021
ffdb21f
child rights addition to DB
beto-Sibileau Jul 13, 2021
f7c5e65
dictionary and maps for child participation
beto-Sibileau Jul 14, 2021
ce73153
modify logic to detect if query filled in helix type sdmx url
beto-Sibileau Jul 14, 2021
bb82101
data load with participation included
beto-Sibileau Jul 14, 2021
ffbc1d5
large files git manager added
beto-Sibileau Jul 27, 2021
8641b58
data dictionary with updated issues for sitan in education
beto-Sibileau Aug 3, 2021
ad2428e
requirements for local tests, not really used by the etl
beto-Sibileau Sep 8, 2021
6efaa67
dictionary and codelist updated with names and subtopics changed by D…
beto-Sibileau Sep 8, 2021
be7c7bf
test requirements (not used by etl)
beto-Sibileau Sep 8, 2021
b85ad79
education subtopics updated according to sarah selection
beto-Sibileau Sep 8, 2021
5652912
unpd calculations: child and adolescents pop
beto-Sibileau Sep 13, 2021
99a7500
git ignore update
beto-Sibileau Sep 13, 2021
b482a95
py file version of notebook added
beto-Sibileau Sep 13, 2021
6a12f7b
helix source standardized string as Helix
beto-Sibileau Sep 15, 2021
b75392a
bring extraction type from data dictionary - for calculation - and ca…
beto-Sibileau Sep 24, 2021
86cb5e3
data dictionary update for calculations
beto-Sibileau Sep 24, 2021
baec319
updates for calculations unpd
beto-Sibileau Sep 24, 2021
79699d1
corrected unit multiplier is column in UNPD
beto-Sibileau Sep 24, 2021
63e7c75
calculations added
beto-Sibileau Sep 24, 2021
4f1486b
codelist updated
beto-Sibileau Sep 24, 2021
54bb934
missing subtopics from education dashboard added
beto-Sibileau Sep 27, 2021
f3e9a95
education repeaters not in dashboard added to subtopic
beto-Sibileau Sep 27, 2021
b7f4b81
constant added for UIS extractions
beto-Sibileau Sep 27, 2021
652c3fb
binary units updated for selected indicators
beto-Sibileau Sep 27, 2021
080b5f7
code mapping for binary units (particular case)
beto-Sibileau Sep 27, 2021
b88909f
etl csv output
beto-Sibileau Sep 27, 2021
a70ea57
udate binary indicators
beto-Sibileau Sep 28, 2021
83c465a
etl run with binaries updated
beto-Sibileau Oct 11, 2021
7c6cb6d
stop tracking ETL out file - git LFS not enough space
beto-Sibileau Oct 11, 2021
bdd5456
added parities and other sitans
beto-Sibileau Oct 14, 2021
8fbb0d3
modify subtopics as newly proposed by Deepak
beto-Sibileau Oct 14, 2021
43a8461
ilo extraction with customized query and oecd country search exception
beto-Sibileau Oct 20, 2021
aea0282
added data structures, WHO, ILO, OECD and other modifications
beto-Sibileau Oct 20, 2021
4b67a2c
run with gender new indicators
beto-Sibileau Oct 20, 2021
9328ac6
new gender indicators and reassign education ict skills to participation
beto-Sibileau Oct 20, 2021
81cf0ab
subgroups within target population calculations
beto-Sibileau Oct 25, 2021
1de931c
missing code mapping for helix education dataflow
beto-Sibileau Oct 25, 2021
b7c778b
first round of gender etls completed
beto-Sibileau Oct 25, 2021
859db21
web scrape UN treaties added
beto-Sibileau Nov 3, 2021
5a76a0f
web scrape un added, share of population merge corrected
beto-Sibileau Nov 3, 2021
1f05812
mappings added for new dataflows, ILO inactivity rates, ESTAT minimum…
beto-Sibileau Nov 3, 2021
3c4ff05
UNICEF dataflow CCRI works similar to Helix
beto-Sibileau Nov 5, 2021
ab390b0
dataflow name added as objet property, duplicate method could be avoi…
beto-Sibileau Nov 5, 2021
e0ee3ef
mappings added, WHO structure for air pollution and UNICEF CCRI
beto-Sibileau Nov 5, 2021
df03b07
UNICEF CCRI extraction - CCRI and CDDEM works as Helix
beto-Sibileau Nov 5, 2021
82d91ea
data dictionary with cross sectoral revision
beto-Sibileau Nov 5, 2021
ecd2f97
requirements update
beto-Sibileau Nov 5, 2021
15eb9c9
git ignore
beto-Sibileau Dec 22, 2021
bbde599
data dictionary update 2021 end
beto-Sibileau Feb 2, 2022
33fa07f
data dictionary revision Siraj Deepak end 2021
beto-Sibileau Feb 3, 2022
1b7b646
data dictionary siraj and deepak revision completed
beto-Sibileau Feb 4, 2022
26364ff
indicators codelist deepak revision updated
beto-Sibileau Feb 4, 2022
32859b3
updated total for age group codes in children rates
beto-Sibileau Mar 3, 2022
4b78637
data source constant for TM 2020 publication
beto-Sibileau Mar 24, 2022
fd95110
revision of indicators after TM collection 2021 finished
beto-Sibileau Apr 21, 2022
9228ec4
data dictionary updated with metadata urls in source sheet
beto-Sibileau May 9, 2022
33d80de
indicator names revision by Deepak
beto-Sibileau May 10, 2022
8eafff0
unit revision by nahid
beto-Sibileau Jun 14, 2022
0af7446
update docker config
beto-Sibileau Jun 15, 2022
df0831a
updated units as proposed by nahid
beto-Sibileau Jun 15, 2022
ad5d334
updated data dictionary
beto-Sibileau Aug 31, 2022
d8c2e4a
data dictionary updated (SP family indicators for Sitan)
beto-Sibileau Sep 6, 2022
5da3c6d
flagship indicators for education source updated from new uis api
beto-Sibileau Sep 21, 2022
4b84877
indicator dictionary updated: inform and oecd cwd
beto-Sibileau Dec 28, 2022
ba7c8e3
Updated data dictionary
Amy-Reidy Jul 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
17 changes: 17 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.134.1/containers/python-3/.devcontainer/base.Dockerfile
ARG VARIANT="3"
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}

# [Optional] If your pip requirements rarely change, uncomment this section to add them to the image.
# COPY requirements.txt /tmp/pip-tmp/
# RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
# && rm -rf /tmp/pip-tmp

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update \
# && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends \
# pandoc \
# texlive-xetex \
# texlive-fonts-recommended \
# texlive-plain-generic
49 changes: 49 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.134.1/containers/python-3
{
"name": "Python 3",
"build": {
"dockerfile": "Dockerfile",
"context": "..",
// Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8
"args": {
"VARIANT": "3"
}
},
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"python.pythonPath": "/usr/local/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
"python.formatting.provider": "black",
"editor.formatOnSave": true,
"python.dataScience.alwaysTrustNotebooks": true,
"jupyter.alwaysTrustNotebooks": true,
"jupyter.textOutputLimit": 0
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"ms-azuretools.vscode-docker",
"github.copilot",
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
8888,
8050
],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pip3 install --user -r requirements.txt",
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode"
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tmee/data_out/data_transformed/TMEE_ETL_out.csv filter=lfs diff=lfs merge=lfs -text
TMEE_ETL_out.csv filter=lfs diff=lfs merge=lfs -text
175 changes: 175 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@


# Created by https://www.toptal.com/developers/gitignore/api/windows,jupyternotebooks,microsoftoffice
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,jupyternotebooks,microsoftoffice

Expand All @@ -11,6 +12,41 @@

# python cache (created by imports executed in notebooks)
__pycache__
*/__pycache__/*
*.pyc

# Debug file used for temporary debugging
debug_file.py
india_covid_dash.py
india_covid_dash_.py
EDA_covid19_trends.py
EDA_covid19_v0.py
ETL_steps*.py
ETL_steps.txt
EDA_ICO.py
main_extract_transform_*.py
sitan_extract.py
query_keys_SDMX.py
test_imports.py
test_nb.py
test_nb2.py

# Gecko driver log file
*.log

# exclude all archive folders
z_archive
data/*/z_archive

# Exclude all data output by the ETL script (commented by Alberto below)
# data_out/
# (Alberto: treated for tmee/data_out end of file)

# this is legacy, because the data folder has been renamed to data_out
data/*

# exclude folder created by visual studio 2019
#.vs/

# IPython
profile_default/
Expand Down Expand Up @@ -67,3 +103,142 @@ $RECYCLE.BIN/
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/windows,jupyternotebooks,microsoftoffice
data/data_normalized/S_101_normalized.xlsx
data/data_normalized/S_101_normalized.xlsx
data/data_raw/S-155, S-156 nrgi_data.csv
data/data_raw/S-166 Registering Property.xlsx
data/data_raw/S-167 Pct_IP_CommunityLands.zip
data/data_raw/S-189 idmc_displacement_all_dataset.xlsx
data/data_raw/S-3-Ratifications_20200828165211.xls
data/data_raw/S-37, S-38, S-39.xlsx
data/data_raw/S-49 WORLD_Dataset_Poverty_3.9.15_0/WORLD Poverty Public Use Data Dictionary.pdf
data/data_raw/S-49 WORLD_Dataset_Poverty_3.9.15_0/WORLD_Dataset_Poverty_3.9.15.dta
data/data_raw/S-49 WORLD_Dataset_Poverty_3.9.15_0/WORLD_Dataset_Poverty_3.9.15.xls
data/data_raw/S-59-Ratifications_20200828165032.xls
data/data_raw/S-59-Ratifications_20200828165128.xls
data/data_raw/S-59-Ratifications_20200828165147.xls
data/data_raw/S_10, S_13, S_36, S_45/Childhood Public Use Data Dictionary_4.16.15.pdf
data/data_raw/S_10, S_13, S_36, S_45/WORLD_Dataset_Childhood_4.16.15.dta
data/data_raw/S_10, S_13, S_36, S_45/WORLD_Dataset_Childhood_4.16.15.xls
data/data_raw/S_10, S_13, S_36, S_45/WORLD_Dataset_Childhood_4.16.15.zip
data/data_raw/S_40, S_41, S_63, S_64, S_65, S_66/WORLD Adult Labor Public Use Data Dictionary_9.17.2018.pdf
data/data_raw/S_40, S_41, S_63, S_64, S_65, S_66/WORLD_Dataset_Adult_Labor_9.17.2018.dta
data/data_raw/S_40, S_41, S_63, S_64, S_65, S_66/WORLD_Dataset_Adult_Labor_9.17.2018.xls
data/data_raw/S_40, S_41, S_63, S_64, S_65, S_66/WORLD_Dataset_Adult_Labor_9.17.2018_0.zip
data/data_raw/S_42, S_43, S_44/Workplace Discrimination Public Use Data Dictionary_13July20.pdf
data/data_raw/S_42, S_43, S_44/WORLD_Dataset_Discrimination_at_Work_14July20_2.zip
data/data_raw/S_42, S_43, S_44/WORLD_discrimination_at_work.dta
data/data_raw/S_42, S_43, S_44/WORLD_discrimination_at_work.xls
data/data_raw/S_8, S_9/All WOrld Policy Analysis Centre Data Catalogues.pdf
data/data_raw/S_8, S_9/Child Labor Public Use Data Dictionary 10.28.19.pdf
data/data_raw/S_8, S_9/WORLD_child_labor.dta
data/data_raw/S_8, S_9/WORLD_child_labor.xls
data/data_raw/S_8, S_9/WORLD_Dataset_Child_Labor_10.28.19.zip

# ignore local VS code settings (this should be applied from dev container)
settings.json

# ignore folder tests
tests

# ignore from validation
/tmee/validation/*.csv
/tmee/validation/*.py
/tmee/validation/ipynb_2_py

# ignore python files with mapping dictionaries (written by ETL)
# these dictionaries have been copied into codes_2_map.py
seasons_map.py
country_map.py
country_names_map.py


# Ignore noteboooks prototypes
API_calls.ipynb
column_mapper.ipynb
proto_sqlite.ipynb
prototype_API_Transform.ipynb
wrap_API_calls.ipynb
wrap_API_calls2.ipynb
proto_extract_transform.ipynb
excel_tmee.ipynb
sdg_16_2_1.ipynb
sitan_extract.ipynb
sitan_invoice.ipynb
EDA_covid19_trends.ipynb
EDA_covid19_v0.ipynb
ETL_steps*.ipynb
main_legacy.ipynb
main_legacy_proto.ipynb
prototype_legacy.ipynb
prototype_API.ipynb
prototype_API_v2.ipynb
prototype_transform.ipynb
prototype_validation.ipynb
main_extract_transform - Copy.ipynb
test_imports.ipynb
sharepoint_auth.ipynb
test_pandera.ipynb
try_sql_excel.ipynb
validation_analytics.ipynb
test_nb.ipynb
main_validation - Copy.ipynb
proto_who_imm_scrape.ipynb
bdss_uis.ipynb
bdss_uis_sdg_ger.ipynb
bdss_uis_unicef.ipynb


# ignore folder below (all excel files)
populate_data_dictionary

# ignore some versioning excel files
indicator_dictionary_TM_v01.xlsx
sitan_report*.xlsx
cross_cut*.xlsx
report_*.xlsx
discarded_report.xlsx
Full_TMEE_Database.xlsx
styled.xlsx
content_legacy.csv

# ignore csv files from particular folders
/tmee/data_out/data_raw/*.csv
/tmee/data_out/data_transformed/*.csv
# track from data_out: TMEE_ETL_out --> this allows to know how the DB is updated along history
# commented: lack of git LFS space
# !TMEE_ETL_out.csv
# ignore xml files from particular folders
/tmee/data_out/data_raw/*.xml
# ignore json files from particular folders
/tmee/data_out/data_raw/*.json
# ignore excel files from codelist
/tmee/data_out/codelists/*.xlsx
# ignore csv files from codelist
/tmee/data_out/codelists/*.csv
# track from codelists: indicators, age and units
!CL_TMEE_INDICATORS.csv
!CL_TMEE_UNITS.csv
!CL_TMEE_AGE.csv

# ignore test folder population (india ICO project)
/tmee/population/
# ignore folder ba_sdmx (flavio project bosnia sdmx)
/tmee/ba_sdmx/
# ignore folder ebse_dev (ebse project kpis)
/tmee/ebse/
# ignore folder dash_pages (parse TM dashboard pages)
/tmee/tm_dash/

# Ignore history download folder
noYreq
extractTest
loopTest
older

# Ignore data_raw, transformed and data_2_load folders in tmee folder
/tmee/data_raw/
/tmee/data_transformed/
/tmee/data_2_load/

# End of https://www.toptal.com/developers/gitignore/api/windows,jupyternotebooks,microsoftoffice
12 changes: 12 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"ExpandedNodes": [
"",
"\\tmee"
],
"SelectedNode": [
"\\tmee\\prototype_API_Transform.ipynb",
"\\tmee\\main_extract_transform.ipynb",
"\\tmee\\validation\\test_pandera.ipynb"
],
"PreviewInSolutionExplorer": false
}
Binary file added .vs/data-etl/v16/.suo
Binary file not shown.
Binary file added .vs/slnx.sqlite
Binary file not shown.
114 changes: 114 additions & 0 deletions .vscode/.ropeproject/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# The default ``config.py``
# flake8: noqa


def set_prefs(prefs):
"""This function is called before opening the project"""

# Specify which files and folders to ignore in the project.
# Changes to ignored resources are not added to the history and
# VCSs. Also they are not returned in `Project.get_files()`.
# Note that ``?`` and ``*`` match all characters but slashes.
# '*.pyc': matches 'test.pyc' and 'pkg/test.pyc'
# 'mod*.pyc': matches 'test/mod1.pyc' but not 'mod/1.pyc'
# '.svn': matches 'pkg/.svn' and all of its children
# 'build/*.o': matches 'build/lib.o' but not 'build/sub/lib.o'
# 'build//*.o': matches 'build/lib.o' and 'build/sub/lib.o'
prefs['ignored_resources'] = ['*.pyc', '*~', '.ropeproject',
'.hg', '.svn', '_svn', '.git', '.tox']

# Specifies which files should be considered python files. It is
# useful when you have scripts inside your project. Only files
# ending with ``.py`` are considered to be python files by
# default.
# prefs['python_files'] = ['*.py']

# Custom source folders: By default rope searches the project
# for finding source folders (folders that should be searched
# for finding modules). You can add paths to that list. Note
# that rope guesses project source folders correctly most of the
# time; use this if you have any problems.
# The folders should be relative to project root and use '/' for
# separating folders regardless of the platform rope is running on.
# 'src/my_source_folder' for instance.
# prefs.add('source_folders', 'src')

# You can extend python path for looking up modules
# prefs.add('python_path', '~/python/')

# Should rope save object information or not.
prefs['save_objectdb'] = True
prefs['compress_objectdb'] = False

# If `True`, rope analyzes each module when it is being saved.
prefs['automatic_soa'] = True
# The depth of calls to follow in static object analysis
prefs['soa_followed_calls'] = 0

# If `False` when running modules or unit tests "dynamic object
# analysis" is turned off. This makes them much faster.
prefs['perform_doa'] = True

# Rope can check the validity of its object DB when running.
prefs['validate_objectdb'] = True

# How many undos to hold?
prefs['max_history_items'] = 32

# Shows whether to save history across sessions.
prefs['save_history'] = True
prefs['compress_history'] = False

# Set the number spaces used for indenting. According to
# :PEP:`8`, it is best to use 4 spaces. Since most of rope's
# unit-tests use 4 spaces it is more reliable, too.
prefs['indent_size'] = 4

# Builtin and c-extension modules that are allowed to be imported
# and inspected by rope.
prefs['extension_modules'] = []

# Add all standard c-extensions to extension_modules list.
prefs['import_dynload_stdmods'] = True

# If `True` modules with syntax errors are considered to be empty.
# The default value is `False`; When `False` syntax errors raise
# `rope.base.exceptions.ModuleSyntaxError` exception.
prefs['ignore_syntax_errors'] = False

# If `True`, rope ignores unresolvable imports. Otherwise, they
# appear in the importing namespace.
prefs['ignore_bad_imports'] = False

# If `True`, rope will insert new module imports as
# `from <package> import <module>` by default.
prefs['prefer_module_from_imports'] = False

# If `True`, rope will transform a comma list of imports into
# multiple separate import statements when organizing
# imports.
prefs['split_imports'] = False

# If `True`, rope will remove all top-level import statements and
# reinsert them at the top of the module when making changes.
prefs['pull_imports_to_top'] = True

# If `True`, rope will sort imports alphabetically by module name instead
# of alphabetically by import statement, with from imports after normal
# imports.
prefs['sort_imports_alphabetically'] = False

# Location of implementation of
# rope.base.oi.type_hinting.interfaces.ITypeHintingFactory In general
# case, you don't have to change this value, unless you're an rope expert.
# Change this value to inject you own implementations of interfaces
# listed in module rope.base.oi.type_hinting.providers.interfaces
# For example, you can add you own providers for Django Models, or disable
# the search type-hinting in a class hierarchy, etc.
prefs['type_hinting_factory'] = (
'rope.base.oi.type_hinting.factory.default_type_hinting_factory')


def project_opened(project):
"""This function is called after opening the project"""
# Do whatever you like here!
Loading