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_type | Output representation: "dict", "pandas", or "polars". |
Value
The CLDR examples in the requested representation.
Raises
ValueError | If as_type is invalid. |
ImportError | If the requested optional DataFrame library is absent. |
Examples
examples = load_cldr_examples()
{"Code", "Example"}.issubset(examples)