World Cities Database (5000+ pop)
- Rows
- 69,695
- Columns
- 4
- Data range
- AD to ZW
- Auto-refresh
- Re-checks its source every 30 days
- Last refreshed with new data
- 2026-10-18
World cities over 5000 population with latitude, longitude. Numeric lat/lon for geocoding. Open-source.
AI analysis
World Cities Database (5000+ Population) — Analytical Overview
1. Dataset Representation & Value This dataset, sourced from the open GitHub repository at [https://raw.githubusercontent.com/joelacus/world-cities/main/worldcities5000.csv](https://raw.githubusercontent.com/joelacus/world-cities/main/worldcities5000.csv), provides a lean but highly functional geospatial reference covering 68,729 cities and towns worldwide with populations exceeding 5,000. The GitHub-hosted, API-served delivery suggests it is actively maintained and versioned, making it relatively trustworthy as a living reference. Its primary value lies as a geocoding backbone — it can anchor nearly any country- or city-level dataset to precise coordinates, enabling spatial joins, distance calculations, clustering, and map visualizations. For correlation analysis, it serves less as a standalone analytical dataset and more as a critical bridge layer that unlocks geographic dimensions in other datasets.
2. Data Quality Observations The quality profile here is exceptionally clean. With zero null cells across all four columns and only 245 distinct countries represented (a reasonable global count), there are no missing-value concerns to manage. The 63,236 distinct city names against 68,729 total rows implies roughly 5,493 duplicate name values — not errors per se, but expected collisions (e.g., multiple cities named "San José" or "Springfield" across different countries), which is why the country + name composite is the correct join key rather than name alone. Duplicate row counts are pending final Parquet recomputation, but the name-collision rate (~8%) is a known characteristic of city name datasets globally and should be handled with composite keying. No type mismatches are reported, and the decimal precision on lat/lng is appropriate for geocoding use.
3. Key Column Distributions The lat column tells a compelling geographic story: a mean of 26.71° and median of 34.05° confirm a Northern Hemisphere bias, consistent with where most of the world's population concentrates. The negative skew of -0.951 reflects a longer tail toward the Southern Hemisphere, and the 664 outlier cities likely represent high-latitude settlements (Scandinavia, Alaska, Patagonia) or edge cases near the poles — worth inspecting but not erroneous. The interquartile range of Q1=12.53° to Q3=45.53° neatly spans the subtropical-to-mid-latitude band where urban density is highest. The lng column is far more symmetrically distributed (skew ≈ -0.049), spanning nearly the full -178° to +179° range, with a mean of 15.59° that reflects European and African city density. The wide standard deviation of σ=71.09° signals good global longitudinal spread. Both coordinate columns show high distinctness (65,787 and 66,652 unique values respectively), confirming that precision is granular enough for real geocoding work.
4. Recommended Join Key Columns The natural join strategy depends on the partner dataset's granularity. country + name together form the strongest composite join key for city-level datasets, handling the ~8% name collision rate. For country-level aggregations, country alone (245 distinct values) is the join key, though standardization against ISO 3166 country codes will likely be necessary since this field stores full names. It's worth noting the country name format should be audited against common standards (UN, World Bank, ISO) before joining, as naming conventions ("United States" vs. "USA" vs. "US") are a frequent source of join failures. For purely spatial joins — matching cities by proximity rather than name — the lat/lng pair enables bounding-box or radius-based joins using PostGIS, GeoPandas, or similar tools.
5. High-Value Pairing Datasets for Correlation Discovery This dataset's richest correlations emerge when paired with thematically rich city- or country-level datasets. Top candidates include: (a) Climate/weather data (temperature, precipitation by lat/lng) to explore how geography correlates with climate zones — latitude alone is a strong predictor; (b) World Bank or UN city population estimates to correlate population size with geographic clustering or coastal proximity; (c) Global internet infrastructure or connectivity indices to examine whether higher-latitude or lower-longitude cities show connectivity disparities; (d) Air quality or pollution datasets (e.g., WHO ambient air quality) joinable by city+country to map pollution against urban density and latitude; and (e) Global conflict or political stability indices (ACLED, Fragile States Index) to explore whether geographic regions cluster by instability. The dataset's clean structure and zero-null profile make it an ideal anchor table in any multi-dataset spatial analysis pipeline.
Columns
- country (string)
- name (string)
- lat (decimal)
- lng (decimal)