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_typeOutput representation: "dict", "pandas", or "polars".

Value

The country-year panel in the requested representation.

Raises

ValueErrorIf as_type is invalid.
ImportErrorIf the requested optional DataFrame library is absent.

Examples

panel = load_codelist_panel()
{"year", "iso3c"}.issubset(panel)