Move graph function to in-text cell Vietnam

This commit is contained in:
Marty Oehme 2022-09-02 10:02:20 +02:00
parent 27b8ceb692
commit a66223481d
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

@ -33,7 +33,11 @@ one which exogenous shocks can rapidly exacerbate as the example of the COVID-19
```{python} ```{python}
#| label: fig-vnm #| label: fig-vnm
#| fig-cap: "Gini index of consumption per capita for Vietnam. Source: Author's elaboration based on UNU-WIDER WIID (2022)." #| fig-cap: "Gini index of consumption per capita for Vietnam. Source: Author's elaboration based on UNU-WIDER WIID (2022)."
plot_consumption_gini_percapita_ruralurban(vnm) gni_cnsmpt = vnm[vnm['resource'].str.contains("Consumption")]
gni_cnsmpt = gni_cnsmpt[gni_cnsmpt['scale'].str.contains("Per capita")]
gni_cnsmpt = gni_cnsmpt[gni_cnsmpt['source'].str.contains("World Bank")]
gni_cnsmpt = gni_cnsmpt[gni_cnsmpt['areacovr'].str.contains("All")]
gini_plot(gni_cnsmpt)
``` ```
<!-- <!--