|
12 | 12 | from geoluck.etl.fetch_cru_cy import run_fetch as run_fetch_cru_cy |
13 | 13 | from geoluck.etl.fetch_eia_company_imports import run_fetch as run_fetch_eia_company_imports |
14 | 14 | from geoluck.etl.fetch_energy_institute_reserves import run_fetch as run_fetch_energy_institute |
| 15 | +from geoluck.etl.fetch_female_lfpr import run_fetch as run_fetch_female_lfpr |
15 | 16 | from geoluck.etl.fetch_freedom_house import run_fetch as run_fetch_freedom_house |
16 | 17 | from geoluck.etl.fetch_fsi import run_fetch as run_fetch_fsi |
17 | 18 | from geoluck.etl.fetch_gcmt import run_fetch as run_fetch_gcmt |
|
45 | 46 | from geoluck.etl.fetch_wealth_accounts import run_fetch as run_fetch_wealth_accounts |
46 | 47 | from geoluck.etl.fetch_wgi import run_fetch as run_fetch_wgi |
47 | 48 | from geoluck.etl.fetch_wocqi import run_fetch as run_fetch_wocqi |
| 49 | +from geoluck.etl.fetch_women_business_law import ( |
| 50 | + run_fetch as run_fetch_women_business_law, |
| 51 | +) |
48 | 52 | from geoluck.etl.fetch_worldclim import run_fetch as run_fetch_worldclim |
49 | 53 | from geoluck.etl.fetch_wpp import run_fetch as run_fetch_wpp |
50 | 54 | from geoluck.features.build_alesina_fractionalization_features import ( |
|
156 | 160 | "income", |
157 | 161 | "--target", |
158 | 162 | help=( |
159 | | - "Prediction target to use. Available: income, life_expectancy, inequality, wealth." |
| 163 | + "Prediction target to use. Available: income, life_expectancy, inequality, " |
| 164 | + "wealth, gender_inequality, female_lfpr, women_business_law." |
160 | 165 | ), |
161 | 166 | ) |
162 | 167 | PERMUTATION_IMPORTANCE_OPTION = typer.Option( |
@@ -267,14 +272,23 @@ def build_outcomes_panel() -> None: |
267 | 272 | typer.echo(f"wpp_input={result.wpp_input_path}") |
268 | 273 | if result.swiid_input_path is not None: |
269 | 274 | typer.echo(f"swiid_input={result.swiid_input_path}") |
| 275 | + if result.undp_gii_input_path is not None: |
| 276 | + typer.echo(f"undp_gii_input={result.undp_gii_input_path}") |
| 277 | + if result.female_lfpr_input_path is not None: |
| 278 | + typer.echo(f"female_lfpr_input={result.female_lfpr_input_path}") |
270 | 279 | if result.wealth_input_path is not None: |
271 | 280 | typer.echo(f"wealth_input={result.wealth_input_path}") |
| 281 | + if result.women_business_law_input_path is not None: |
| 282 | + typer.echo(f"women_business_law_input={result.women_business_law_input_path}") |
272 | 283 | typer.echo(f"output={result.output_path}") |
273 | 284 | typer.echo(f"rows={result.row_count}") |
274 | 285 | typer.echo(f"decades={result.decades}") |
275 | 286 | typer.echo(f"life_expectancy_rows={result.life_expectancy_rows}") |
276 | 287 | typer.echo(f"inequality_rows={result.inequality_rows}") |
| 288 | + typer.echo(f"gender_inequality_rows={result.gender_inequality_rows}") |
| 289 | + typer.echo(f"female_lfpr_rows={result.female_lfpr_rows}") |
277 | 290 | typer.echo(f"wealth_rows={result.wealth_rows}") |
| 291 | + typer.echo(f"women_business_law_rows={result.women_business_law_rows}") |
278 | 292 |
|
279 | 293 |
|
280 | 294 | @app.command("fetch-natural-earth") |
@@ -357,6 +371,39 @@ def fetch_undp_gii( |
357 | 371 | typer.echo(f"unmatched_countries={result.unmatched_country_count}") |
358 | 372 |
|
359 | 373 |
|
| 374 | +@app.command("fetch-female-lfpr") |
| 375 | +def fetch_female_lfpr( |
| 376 | + force: bool = typer.Option(False, help="Redownload the female LFPR indicator payload."), |
| 377 | +) -> None: |
| 378 | + """Fetch and normalize the World Bank / ILO female LFPR series.""" |
| 379 | + result = run_fetch_female_lfpr(force=force) |
| 380 | + typer.echo(f"raw_countries={result.raw_countries_path}") |
| 381 | + typer.echo(f"raw_indicators={result.raw_indicators_path}") |
| 382 | + typer.echo(f"tidy={result.tidy_path}") |
| 383 | + typer.echo(f"provenance={result.provenance_path}") |
| 384 | + typer.echo(f"rows={result.row_count}") |
| 385 | + typer.echo(f"countries={result.country_count}") |
| 386 | + typer.echo(f"years={result.year_min}-{result.year_max}") |
| 387 | + |
| 388 | + |
| 389 | +@app.command("fetch-women-business-law") |
| 390 | +def fetch_women_business_law( |
| 391 | + force: bool = typer.Option( |
| 392 | + False, |
| 393 | + help="Redownload the Women, Business and the Law indicator payload.", |
| 394 | + ), |
| 395 | +) -> None: |
| 396 | + """Fetch and normalize the World Bank Women, Business and the Law index.""" |
| 397 | + result = run_fetch_women_business_law(force=force) |
| 398 | + typer.echo(f"raw_countries={result.raw_countries_path}") |
| 399 | + typer.echo(f"raw_indicators={result.raw_indicators_path}") |
| 400 | + typer.echo(f"tidy={result.tidy_path}") |
| 401 | + typer.echo(f"provenance={result.provenance_path}") |
| 402 | + typer.echo(f"rows={result.row_count}") |
| 403 | + typer.echo(f"countries={result.country_count}") |
| 404 | + typer.echo(f"years={result.year_min}-{result.year_max}") |
| 405 | + |
| 406 | + |
360 | 407 | @app.command("fetch-global-solar-atlas") |
361 | 408 | def fetch_global_solar_atlas( |
362 | 409 | force: bool = typer.Option(False, help="Refetch the Global Solar Atlas point samples."), |
|
0 commit comments