wow-inequalities/00-notebooks/yml-grab.qmd

24 lines
361 B
Plaintext
Raw Normal View History

---
bibliography: 02-data/supplementary/lib.bib
title: Grab yml
---
```{python}
import pandas as pd
from src import data
df = data.from_yml()
```
Get interventions:
```{python}
df['intervention'].str.split(";").explode().str.strip().value_counts()
```
Get inequalities:
```{python}
df['inequality'].str.split(";").explode().str.strip().value_counts()
```