chore(script): Add table captions

This commit is contained in:
Marty Oehme 2024-02-20 18:41:38 +01:00
parent 7af85cac19
commit fe614ab47a
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -318,6 +318,7 @@ with the search query requiring a term from the general column and one other col
```{python} ```{python}
#| label: tbl-wow-terms #| label: tbl-wow-terms
#| tbl-cap: World of work term cluster
terms_wow = pd.read_csv("02-data/supplementary/terms_wow.csv") terms_wow = pd.read_csv("02-data/supplementary/terms_wow.csv")
md(tabulate(terms_wow.fillna(""), showindex=False, headers="keys", tablefmt="grid")) md(tabulate(terms_wow.fillna(""), showindex=False, headers="keys", tablefmt="grid"))
``` ```
@ -339,6 +340,7 @@ For the database query, a single term from the general category is required to b
```{python} ```{python}
#| label: tbl-intervention-terms #| label: tbl-intervention-terms
#| tbl-cap: Intervention term cluster
terms_policy = pd.read_csv("02-data/supplementary/terms_policy.csv") terms_policy = pd.read_csv("02-data/supplementary/terms_policy.csv")
# different headers to include 'social norms' # different headers to include 'social norms'
headers = ["General", "Institutional", "Structural", "Agency & social norms"] headers = ["General", "Institutional", "Structural", "Agency & social norms"]
@ -1737,9 +1739,9 @@ print(f"""
| Representativeness | Ranking | | Representativeness | Ranking |
| --- | --- | | --- | --- |
| non-representative survey | 2.0 | | non-representative survey/dataset | 2.0 |
| subnationally representative survey | 3.0 | | subnationally representative survey/dataset | 3.0 |
| nationally representative survey | 4.0 | | nationally representative survey/dataset | 4.0 |
| census-based dataset | 5.0 | | census-based dataset | 5.0 |
: External validity ranking. Adapted from @Maitrot2017. : External validity ranking. Adapted from @Maitrot2017.
@ -1756,4 +1758,12 @@ print(f"""
: Internal validity ranking. Adapted from @Maitrot2017. : Internal validity ranking. Adapted from @Maitrot2017.
## Extraction matrix
```{python}
#| label: tbl-extraction-matrix
#| tbl-cap: Extraction matrix
bib_df
```
{{< pagebreak >}} {{< pagebreak >}}