{"categories":[{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering/2"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/3"}],"enrichment":{"capability":"Converts and matches country names across different classification standards (ISO 2/3 letter codes, numeric codes, UN/EU/OECD membership schemes) using regex-based matching and can build concordance matrices between schemes.","skillfed_tags":["data-cleaning","country-data","standardization"],"use_cases":["Clean messy country names in datasets by converting them to standardized ISO codes or short names.","Filter datasets by country membership in organizations like the EU, OECD, or UN by year.","Build concordance matrices to map between different country classification schemes used in different data sources.","Batch-convert large pandas Series of country identifiers to a target format with high performance.","Match country names from one list against a master list using regex-based fuzzy matching.","Extract country-level data from multi-source datasets where countries are named inconsistently."],"what_it_does":"Country converter (coco) is a Python package that standardizes and matches country names across multiple classification schemes. It solves the problem of inconsistent country naming in datasets by converting between ISO 2-letter codes, ISO 3-letter codes, ISO numeric codes, and common country names. Internally, it uses regex patterns to match variants and stores data in a pandas DataFrame, making it useful for data cleaning and aggregation tasks.\n\nThe package includes built-in classifications for UN membership, EU membership, OECD membership, UN regions, continents, and various MRIO and IAM databases. It offers both a Python API and a command-line interface. For pandas Series, a dedicated `pandas_convert()` method provides significant performance gains (described as 4000x speedup for 1 million rows compared to the standard convert method). You can also access the underlying DataFrame directly to filter by membership criteria or build custom concordance matrices.","worth_installing":"Yes, with conditions. The package is well-maintained enough for production use (no known vulnerabilities, active repository, supports current Python versions), but its aging maintenance status (296 days since last release) means you should monitor for updates. The GPLv3 license is a hard blocker if you need to keep your code proprietary. Install it if you regularly work with messy country data and can accept the copyleft requirement."},"id":"country-converter","links":{"html":"https://skillfed.io/packages/country-converter","md":"https://skillfed.io/packages/country-converter.md","pypi":"https://pypi.org/project/country-converter/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-10-22","license_spdx":null,"license_treatment":"copyleft","name":"country-converter","python_support":"supports_current","summary":"The country converter (coco) - a Python package for converting country names between different classifications schemes"},"popularity":{"monthly_downloads":2541161,"position":3011,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.3.2"}
