Load the reconciled country-year conversion dictionary.
def load_codelist_panel(as_type: Literal["dict", "pandas", "polars"] = "dict")
Description
The panel contains country-year observations with multiple coding schemes. It is preferable to the cross-sectional dictionary when political units or codes change over time.
Arguments
as_type | Output representation: "dict", "pandas", or "polars". |
Value
The country-year panel in the requested representation.
Raises
ValueError | If as_type is invalid. |
ImportError | If the requested optional DataFrame library is absent. |
Examples
panel = load_codelist_panel()
{"year", "iso3c"}.issubset(panel)