Load examples of available Unicode CLDR destination fields.

def load_cldr_examples(as_type: Literal["dict", "pandas", "polars"] = "dict")

Description

The dataset associates CLDR field codes with example country names and is useful for choosing among the hundreds of cldr.* destinations.

Arguments

as_typeOutput representation: "dict", "pandas", or "polars".

Value

The CLDR examples in the requested representation.

Raises

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

Examples

examples = load_cldr_examples()
{"Code", "Example"}.issubset(examples)