bamwor commited on
Commit
5168da1
·
verified ·
1 Parent(s): 23cdeb1

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +95 -3
  2. world_cities.csv +0 -0
  3. world_cities.parquet +3 -0
README.md CHANGED
@@ -1,3 +1,95 @@
1
- ---
2
- license: cc-by-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - geography
7
+ - cities
8
+ - population
9
+ - geospatial
10
+ - geonames
11
+ - coordinates
12
+ size_categories:
13
+ - 1K<n<10K
14
+ task_categories:
15
+ - tabular-classification
16
+ - feature-extraction
17
+ pretty_name: "World Cities Dataset 2026 (Population >= 100K)"
18
+ ---
19
+
20
+ # World Cities Dataset 2026
21
+
22
+ Structured dataset of **5,979 cities worldwide** with population above 100,000. Includes coordinates, timezone, elevation, and country association.
23
+
24
+ ## Dataset Description
25
+
26
+ - **Source:** [Bamwor](https://bamwor.com) — based on GeoNames data, curated and enriched
27
+ - **Records:** 5,979 cities (population >= 100,000)
28
+ - **Countries represented:** 171
29
+ - **Full dataset:** 13.4M cities (available via API)
30
+ - **Format:** CSV and Parquet
31
+ - **License:** CC BY 4.0
32
+ - **Last Updated:** March 2026
33
+
34
+ ## Fields
35
+
36
+ | Column | Type | Description |
37
+ |--------|------|-------------|
38
+ | geoname_id | int | GeoNames unique identifier |
39
+ | name | string | City name (ASCII English) |
40
+ | country_code | string | ISO 2-letter country code |
41
+ | population | int | City population |
42
+ | latitude | float | Latitude |
43
+ | longitude | float | Longitude |
44
+ | timezone | string | IANA timezone |
45
+ | elevation | int | Elevation in meters (if available) |
46
+ | feature_code | string | GeoNames feature code (PPLC=capital, PPLA=admin center, etc.) |
47
+
48
+ ## Quick Stats
49
+
50
+ - **5,979 cities** across 171 countries
51
+ - Population range: 100,000 to 24,874,500 (Shanghai)
52
+ - Top countries by city count: China (641), India (534), Brazil (382), US (356), Japan (293)
53
+
54
+ ## Usage
55
+
56
+ ```python
57
+ from datasets import load_dataset
58
+
59
+ ds = load_dataset("bamwor/world-cities")
60
+ df = ds["train"].to_pandas()
61
+
62
+ # Top 20 largest cities globally
63
+ print(df.nlargest(20, "population")[["name", "country_code", "population"]])
64
+
65
+ # Cities in Brazil above 500K
66
+ brazil = df[(df["country_code"] == "BR") & (df["population"] >= 500000)]
67
+ print(brazil.sort_values("population", ascending=False))
68
+ ```
69
+
70
+ ## What's NOT included (available via API)
71
+
72
+ - 13.4M+ cities (this dataset only includes cities >= 100K population)
73
+ - Multilingual city names (Spanish, Portuguese, Italian)
74
+ - Administrative region / province names
75
+ - URL slugs for web integration
76
+ - Nearby cities search (PostGIS-powered)
77
+
78
+ ## Full Data Access
79
+
80
+ - **REST API:** [bamwor.com/developers](https://bamwor.com/en/developers) — free tier: 1,000 requests/day
81
+ - **MCP Server:** [bamwor-mcp-server](https://npmjs.com/package/bamwor-mcp-server) — AI agent integration
82
+ - **Complete country data:** [bamwor/world-countries](https://huggingface.co/datasets/bamwor/world-countries)
83
+ - **GitHub:** [bamwor-dev/bamwor-mcp-server](https://github.com/bamwor-dev/bamwor-mcp-server)
84
+
85
+ ## Citation
86
+
87
+ ```bibtex
88
+ @misc{bamwor2026cities,
89
+ title={World Cities Dataset 2026},
90
+ author={Bamwor},
91
+ year={2026},
92
+ url={https://bamwor.com},
93
+ note={Based on GeoNames, curated by Bamwor}
94
+ }
95
+ ```
world_cities.csv ADDED
The diff for this file is too large to render. See raw diff
 
world_cities.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cc7df60678e70931dddfe6e32320925dbbf56a12b65b90cc145a5653917ee38
3
+ size 273882