Upload world-airport-network dataset files
Browse filesFiles changed (8)
- KAGGLE.mdAdded+149
- README.mdAdded+158
- about.mdAdded+26
- airports.csvAdded
- data_dictionary.csvAdded+44
- dataset-metadata.jsonAdded+257
- kernel-metadata.jsonAdded+14
- notebook.ipynbAdded+213
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149# World Airport Network
**Subtitle:** 7,698 airports with IATA/ICAO codes, coordinates and route graph statistics
**Tags:** `aviation`, `transportation`, `geospatial`, `networks`, `airports`, `travel`, `logistics`, `graph-analysis`, `tabular`, `economics`
**Dataset File:** `airports.csv` (7,698 rows, 43 columns, 1.9 MB)
---
## 📖 Description
### The world's airports as a graph
OpenFlights maintains one of the most widely used open aviation registries. This dataset joins its
**airport directory** with its **airline route table** to describe **7,698 airports** in
237 countries using **43 parameters** — including the network structure
that only appears once routes are aggregated.
Each row is one airport and contains:
- **Identity** — OpenFlights id, name, city, country, IATA and ICAO codes, facility type and data source.
- **Position** — latitude, longitude, elevation in feet, UTC offset, DST rule and IANA time zone.
- **Network degree** — departing and arriving route records, distinct airlines, distinct non-stop
destinations, foreign destinations, countries served, domestic versus international route counts and
the international share.
- **Dominant carrier** — the airline with the most routes at that airport and how many it runs.
- **Reach** — mean and maximum great-circle route distance, and the airport code of the longest hop.
- **Role** — a hub class derived from route count, from Isolated to Global hub.
- **Country context** — continent, UN region and sub-region, population, GDP per capita, distance to the
national capital, a near-capital flag, the number of airports in the country and routes per million people.
**7,698 of 7,698 records are scheduled-service airports**; about **3,262** have at least
one route in the airlines table, which makes the difference between "an airport exists" and "an airport is
connected" directly measurable.
## 🧾 Columns (43)
`airport_id`, `name`, `city`, `country`, `iata`, `icao`, `latitude`, `longitude`, `altitude_ft`, `tz_offset_hours`, `dst`, `tz_database`, `type`, `source`, `continent`, `region`, `subregion`, `hemisphere`, `altitude_band`, `has_iata`, `is_scheduled_service`, `utc_offset_band`, `n_routes_out`, `n_routes_in`, `n_airlines`, `n_destinations`, `n_destinations_international`, `n_countries_served`, `n_domestic_routes`, `share_international_pct`, `top_airline`, `top_airline_routes`, `mean_route_distance_km`, `max_route_distance_km`, `farthest_destination`, `hub_class`, `capital_distance_km`, `is_near_capital`, `routes_per_million_people`, `country_population`, `country_gdp_per_capita_usd`, `airports_in_country`, `name_word_count`
## 💡 Ideas for using this data
1. **Airport ranking** — build a hub index from degree, destination count and international share.
2. **Network analysis** — the route table implies a directed graph; compute centrality, communities and degree distributions from the per-airport aggregates.
3. **Hub-and-spoke structure** — plot `n_destinations` against `n_airlines` to separate fortress hubs from diversified ones.
4. **Long-haul geography** — map `max_route_distance_km`; which airports exist only because of ultra-long-haul aircraft?
5. **Isolation** — find countries where many airports exist but almost none are connected.
6. **Capital concentration** — `capital_distance_km` versus route count; how much traffic funnels through capital-city airports?
7. **Aviation and wealth** — `routes_per_million_people` against GDP per capita.
8. **Time zones** — airports per UTC offset band; where does the world's air traffic actually sit?
9. **Classification** — predict `hub_class` from geography and country features.
## 📁 Files
| File | What it is |
|---|---|
| `airports.csv` | 7,698 airports x 43 parameters, route-network enriched. |
| `data_dictionary.csv` | Column / type / description for every field. |
| `notebook.ipynb` | Starter notebook: hub ranking, long-haul map, wealth vs connectivity. |
| `dataset-metadata.json` | Kaggle API metadata. |
| `about.md` | Plain-text About block. |
## 🏷️ Tags
`aviation`, `transportation`, `geospatial`, `networks`, `airports`, `travel`, `logistics`, `graph-analysis`, `tabular`, `economics`
## 🔗 Provenance
- **Source:** **OpenFlights** open data, `airports.dat` and `routes.dat`
(`github.com/jpatokal/openflights/data`). Airport records ultimately derive from OurAirports and DAFIF;
route records are contributed by airlines and the OpenFlights community.
- **Licence of the upstream files:** Open Database License (ODbL) 1.0.
- **Transformation:** airport rows reshaped into 14 named columns; the route table aggregated per airport
to produce degree, destination, airline, distance and domestic/international statistics.
- **Enrichment:** country population, GDP per capita, capital coordinates and UN regions joined from the
World Bank-backed `countries-of-the-world` table in this repository by country name.
- **Snapshot date:** 20 November 2026.
## 🔄 Update frequency
**Never (static snapshot).** OpenFlights is largely frozen upstream; the network statistics here reflect the route table as of the snapshot date.
## ⚠️ Caveats
- Route coverage is community-maintained and uneven: some regions (notably parts of Africa and Central Asia) are under-reported.
- `\N` marks a missing IATA/ICAO code and is preserved rather than blanked so it can be filtered explicitly.
- Routes are counted as records in `routes.dat`; a route operated by three airlines counts three times.
- The country join is by name, so a few territories (e.g. 'Hong Kong', 'Macau') may not match a World Bank entity.
- Distances are great-circle, not flown track distances.
- The file is a snapshot of schedules, not of passenger volumes — no traffic or seat-capacity figures are included.
## 📜 Licence
Open Database License (ODbL) 1.0 for the OpenFlights airport and route data. Derived statistics may be shared under the same terms; attribution to OpenFlights and OurAirports is required.
### 📋 Column Definitions & File Header
| # | Column Name | Data Type | Description |
|---|---|---|---|
| 1 | `airport_id` | `number` | OpenFlights airport identifier. |
| 2 | `name` | `string` | Airport name. |
| 3 | `city` | `string` | City served. |
| 4 | `country` | `string` | Country name as recorded by OpenFlights. |
| 5 | `iata` | `string` | 3-letter IATA code (\N when unassigned). |
| 6 | `icao` | `string` | 4-letter ICAO code (\N when unassigned). |
| 7 | `latitude` | `number` | Latitude in decimal degrees. |
| 8 | `longitude` | `number` | Longitude in decimal degrees. |
| 9 | `altitude_ft` | `number` | Elevation above sea level in feet. |
| 10 | `tz_offset_hours` | `number` | UTC offset in hours (fractional where applicable). |
| 11 | `dst` | `string` | Daylight-saving-time rule letter used by OpenFlights. |
| 12 | `tz_database` | `string` | IANA time-zone name. |
| 13 | `type` | `string` | Facility type: airport, heliport, seaplane base, closed. |
| 14 | `source` | `string` | Upstream data source for the record. |
| 15 | `continent` | `string` | Continent of the airport's country. |
| 16 | `region` | `string` | UN macro-region of the airport's country. |
| 17 | `subregion` | `string` | UN sub-region of the airport's country. |
| 18 | `hemisphere` | `string` | Northern or Southern hemisphere. |
| 19 | `altitude_band` | `string` | Elevation band from sea level to high plateau. |
| 20 | `has_iata` | `boolean` | true when the airport has an IATA code (i.e. is commercially ticketed). |
| 21 | `is_scheduled_service` | `boolean` | true for records typed `airport` (as opposed to heliport, seaplane base, closed). |
| 22 | `utc_offset_band` | `number` | UTC offset rounded to the nearest whole hour. |
| 23 | `n_routes_out` | `number` | Number of scheduled route records departing this airport. |
| 24 | `n_routes_in` | `number` | Number of scheduled route records arriving at this airport. |
| 25 | `n_airlines` | `number` | Distinct airlines operating to or from the airport. |
| 26 | `n_destinations` | `number` | Distinct airports reachable in one non-stop hop. |
| 27 | `n_destinations_international` | `number` | Distinct destination airports outside the airport's own country. |
| 28 | `n_countries_served` | `number` | Distinct foreign countries reachable non-stop. |
| 29 | `n_domestic_routes` | `number` | Route records whose origin and destination are in the same country. |
| 30 | `share_international_pct` | `number` | Percentage of this airport's route records that cross a border. |
| 31 | `top_airline` | `string` | Airline with the most route records at this airport. |
| 32 | `top_airline_routes` | `number` | Route records operated by that airline. |
| 33 | `mean_route_distance_km` | `number` | Mean great-circle distance of this airport's routes. |
| 34 | `max_route_distance_km` | `number` | Longest non-stop route from this airport. |
| 35 | `farthest_destination` | `string` | Airport code of that longest route. |
| 36 | `hub_class` | `string` | Network role from route count: Isolated, Feeder, Regional, Major, Global hub. |
| 37 | `capital_distance_km` | `string` | Great-circle distance to the country's capital city. |
| 38 | `is_near_capital` | `string` | true when the airport is within 40 km of its country's capital. |
| 39 | `routes_per_million_people` | `number` | Route records divided by country population in millions. |
| 40 | `country_population` | `number` | Country population (World Bank, joined). |
| 41 | `country_gdp_per_capita_usd` | `number` | Country GDP per capita (World Bank, joined). |
| 42 | `airports_in_country` | `number` | Number of airports in this file for the same country. |
| 43 | `name_word_count` | `number` | Number of words in the airport name. |
---
## 🌟 Support & Community
If you find this dataset valuable for your research, portfolio, or machine learning projects, **please give it an upvote (👍) on Kaggle!**
Feedback, questions, and notebook submissions are warmly welcomed in the Discussions tab.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158---
license: cc-by-4.0
task_categories:
- tabular-classification
tags:
- tabular
pretty_name: World Airport Network
---
# World Airport Network
**Subtitle:** 7,698 airports with IATA/ICAO codes, coordinates and route graph statistics
**Tags:** `aviation`, `transportation`, `geospatial`, `networks`, `airports`, `travel`, `logistics`, `graph-analysis`, `tabular`, `economics`
**Dataset File:** `airports.csv` (7,698 rows, 43 columns, 1.9 MB)
---
## 📖 Description
### The world's airports as a graph
OpenFlights maintains one of the most widely used open aviation registries. This dataset joins its
**airport directory** with its **airline route table** to describe **7,698 airports** in
237 countries using **43 parameters** — including the network structure
that only appears once routes are aggregated.
Each row is one airport and contains:
- **Identity** — OpenFlights id, name, city, country, IATA and ICAO codes, facility type and data source.
- **Position** — latitude, longitude, elevation in feet, UTC offset, DST rule and IANA time zone.
- **Network degree** — departing and arriving route records, distinct airlines, distinct non-stop
destinations, foreign destinations, countries served, domestic versus international route counts and
the international share.
- **Dominant carrier** — the airline with the most routes at that airport and how many it runs.
- **Reach** — mean and maximum great-circle route distance, and the airport code of the longest hop.
- **Role** — a hub class derived from route count, from Isolated to Global hub.
- **Country context** — continent, UN region and sub-region, population, GDP per capita, distance to the
national capital, a near-capital flag, the number of airports in the country and routes per million people.
**7,698 of 7,698 records are scheduled-service airports**; about **3,262** have at least
one route in the airlines table, which makes the difference between "an airport exists" and "an airport is
connected" directly measurable.
## 🧾 Columns (43)
`airport_id`, `name`, `city`, `country`, `iata`, `icao`, `latitude`, `longitude`, `altitude_ft`, `tz_offset_hours`, `dst`, `tz_database`, `type`, `source`, `continent`, `region`, `subregion`, `hemisphere`, `altitude_band`, `has_iata`, `is_scheduled_service`, `utc_offset_band`, `n_routes_out`, `n_routes_in`, `n_airlines`, `n_destinations`, `n_destinations_international`, `n_countries_served`, `n_domestic_routes`, `share_international_pct`, `top_airline`, `top_airline_routes`, `mean_route_distance_km`, `max_route_distance_km`, `farthest_destination`, `hub_class`, `capital_distance_km`, `is_near_capital`, `routes_per_million_people`, `country_population`, `country_gdp_per_capita_usd`, `airports_in_country`, `name_word_count`
## 💡 Ideas for using this data
1. **Airport ranking** — build a hub index from degree, destination count and international share.
2. **Network analysis** — the route table implies a directed graph; compute centrality, communities and degree distributions from the per-airport aggregates.
3. **Hub-and-spoke structure** — plot `n_destinations` against `n_airlines` to separate fortress hubs from diversified ones.
4. **Long-haul geography** — map `max_route_distance_km`; which airports exist only because of ultra-long-haul aircraft?
5. **Isolation** — find countries where many airports exist but almost none are connected.
6. **Capital concentration** — `capital_distance_km` versus route count; how much traffic funnels through capital-city airports?
7. **Aviation and wealth** — `routes_per_million_people` against GDP per capita.
8. **Time zones** — airports per UTC offset band; where does the world's air traffic actually sit?
9. **Classification** — predict `hub_class` from geography and country features.
## 📁 Files
| File | What it is |
|---|---|
| `airports.csv` | 7,698 airports x 43 parameters, route-network enriched. |
| `data_dictionary.csv` | Column / type / description for every field. |
| `notebook.ipynb` | Starter notebook: hub ranking, long-haul map, wealth vs connectivity. |
| `dataset-metadata.json` | Kaggle API metadata. |
| `about.md` | Plain-text About block. |
## 🏷️ Tags
`aviation`, `transportation`, `geospatial`, `networks`, `airports`, `travel`, `logistics`, `graph-analysis`, `tabular`, `economics`
## 🔗 Provenance
- **Source:** **OpenFlights** open data, `airports.dat` and `routes.dat`
(`github.com/jpatokal/openflights/data`). Airport records ultimately derive from OurAirports and DAFIF;
route records are contributed by airlines and the OpenFlights community.
- **Licence of the upstream files:** Open Database License (ODbL) 1.0.
- **Transformation:** airport rows reshaped into 14 named columns; the route table aggregated per airport
to produce degree, destination, airline, distance and domestic/international statistics.
- **Enrichment:** country population, GDP per capita, capital coordinates and UN regions joined from the
World Bank-backed `countries-of-the-world` table in this repository by country name.
- **Snapshot date:** 20 November 2026.
## 🔄 Update frequency
**Never (static snapshot).** OpenFlights is largely frozen upstream; the network statistics here reflect the route table as of the snapshot date.
## ⚠️ Caveats
- Route coverage is community-maintained and uneven: some regions (notably parts of Africa and Central Asia) are under-reported.
- `\N` marks a missing IATA/ICAO code and is preserved rather than blanked so it can be filtered explicitly.
- Routes are counted as records in `routes.dat`; a route operated by three airlines counts three times.
- The country join is by name, so a few territories (e.g. 'Hong Kong', 'Macau') may not match a World Bank entity.
- Distances are great-circle, not flown track distances.
- The file is a snapshot of schedules, not of passenger volumes — no traffic or seat-capacity figures are included.
## 📜 Licence
Open Database License (ODbL) 1.0 for the OpenFlights airport and route data. Derived statistics may be shared under the same terms; attribution to OpenFlights and OurAirports is required.
### 📋 Column Definitions & File Header
| # | Column Name | Data Type | Description |
|---|---|---|---|
| 1 | `airport_id` | `number` | OpenFlights airport identifier. |
| 2 | `name` | `string` | Airport name. |
| 3 | `city` | `string` | City served. |
| 4 | `country` | `string` | Country name as recorded by OpenFlights. |
| 5 | `iata` | `string` | 3-letter IATA code (\N when unassigned). |
| 6 | `icao` | `string` | 4-letter ICAO code (\N when unassigned). |
| 7 | `latitude` | `number` | Latitude in decimal degrees. |
| 8 | `longitude` | `number` | Longitude in decimal degrees. |
| 9 | `altitude_ft` | `number` | Elevation above sea level in feet. |
| 10 | `tz_offset_hours` | `number` | UTC offset in hours (fractional where applicable). |
| 11 | `dst` | `string` | Daylight-saving-time rule letter used by OpenFlights. |
| 12 | `tz_database` | `string` | IANA time-zone name. |
| 13 | `type` | `string` | Facility type: airport, heliport, seaplane base, closed. |
| 14 | `source` | `string` | Upstream data source for the record. |
| 15 | `continent` | `string` | Continent of the airport's country. |
| 16 | `region` | `string` | UN macro-region of the airport's country. |
| 17 | `subregion` | `string` | UN sub-region of the airport's country. |
| 18 | `hemisphere` | `string` | Northern or Southern hemisphere. |
| 19 | `altitude_band` | `string` | Elevation band from sea level to high plateau. |
| 20 | `has_iata` | `boolean` | true when the airport has an IATA code (i.e. is commercially ticketed). |
| 21 | `is_scheduled_service` | `boolean` | true for records typed `airport` (as opposed to heliport, seaplane base, closed). |
| 22 | `utc_offset_band` | `number` | UTC offset rounded to the nearest whole hour. |
| 23 | `n_routes_out` | `number` | Number of scheduled route records departing this airport. |
| 24 | `n_routes_in` | `number` | Number of scheduled route records arriving at this airport. |
| 25 | `n_airlines` | `number` | Distinct airlines operating to or from the airport. |
| 26 | `n_destinations` | `number` | Distinct airports reachable in one non-stop hop. |
| 27 | `n_destinations_international` | `number` | Distinct destination airports outside the airport's own country. |
| 28 | `n_countries_served` | `number` | Distinct foreign countries reachable non-stop. |
| 29 | `n_domestic_routes` | `number` | Route records whose origin and destination are in the same country. |
| 30 | `share_international_pct` | `number` | Percentage of this airport's route records that cross a border. |
| 31 | `top_airline` | `string` | Airline with the most route records at this airport. |
| 32 | `top_airline_routes` | `number` | Route records operated by that airline. |
| 33 | `mean_route_distance_km` | `number` | Mean great-circle distance of this airport's routes. |
| 34 | `max_route_distance_km` | `number` | Longest non-stop route from this airport. |
| 35 | `farthest_destination` | `string` | Airport code of that longest route. |
| 36 | `hub_class` | `string` | Network role from route count: Isolated, Feeder, Regional, Major, Global hub. |
| 37 | `capital_distance_km` | `string` | Great-circle distance to the country's capital city. |
| 38 | `is_near_capital` | `string` | true when the airport is within 40 km of its country's capital. |
| 39 | `routes_per_million_people` | `number` | Route records divided by country population in millions. |
| 40 | `country_population` | `number` | Country population (World Bank, joined). |
| 41 | `country_gdp_per_capita_usd` | `number` | Country GDP per capita (World Bank, joined). |
| 42 | `airports_in_country` | `number` | Number of airports in this file for the same country. |
| 43 | `name_word_count` | `number` | Number of words in the airport name. |
---
## 🌟 Support & Community
If you find this dataset valuable for your research, portfolio, or machine learning projects, **please give it an upvote (👍) on Kaggle!**
Feedback, questions, and notebook submissions are warmly welcomed in the Discussions tab.1234567891011121314151617181920212223242526World Airport Network
### The world's airports as a graph
OpenFlights maintains one of the most widely used open aviation registries. This dataset joins its**airport directory** with its **airline route table** to describe **7,698 airports** in237 countries using **43 parameters** — including the network structurethat only appears once routes are aggregated.
Each row is one airport and contains:- **Identity** — OpenFlights id, name, city, country, IATA and ICAO codes, facility type and data source.- **Position** — latitude, longitude, elevation in feet, UTC offset, DST rule and IANA time zone.- **Network degree** — departing and arriving route records, distinct airlines, distinct non-stop destinations, foreign destinations, countries served, domestic versus international route counts and the international share.- **Dominant carrier** — the airline with the most routes at that airport and how many it runs.- **Reach** — mean and maximum great-circle route distance, and the airport code of the longest hop.- **Role** — a hub class derived from route count, from Isolated to Global hub.- **Country context** — continent, UN region and sub-region, population, GDP per capita, distance to the national capital, a near-capital flag, the number of airports in the country and routes per million people.
**7,698 of 7,698 records are scheduled-service airports**; about **3,262** have at leastone route in the airlines table, which makes the difference between "an airport exists" and "an airport isconnected" directly measurable.
43 columns; one row per airport.1234567891011121314151617181920212223242526272829303132333435363738394041424344column,data_type,description
airport_id,number,OpenFlights airport identifier.
name,string,Airport name.
city,string,City served.
country,string,Country name as recorded by OpenFlights.
iata,string,3-letter IATA code (\N when unassigned).
icao,string,4-letter ICAO code (\N when unassigned).
latitude,number,Latitude in decimal degrees.
longitude,number,Longitude in decimal degrees.
altitude_ft,number,Elevation above sea level in feet.
tz_offset_hours,number,UTC offset in hours (fractional where applicable).
dst,string,Daylight-saving-time rule letter used by OpenFlights.
tz_database,string,IANA time-zone name.
type,string,"Facility type: airport, heliport, seaplane base, closed."
source,string,Upstream data source for the record.
continent,string,Continent of the airport's country.
region,string,UN macro-region of the airport's country.
subregion,string,UN sub-region of the airport's country.
hemisphere,string,Northern or Southern hemisphere.
altitude_band,string,Elevation band from sea level to high plateau.
has_iata,boolean,true when the airport has an IATA code (i.e. is commercially ticketed).
is_scheduled_service,boolean,"true for records typed `airport` (as opposed to heliport, seaplane base, closed)."
utc_offset_band,number,UTC offset rounded to the nearest whole hour.
n_routes_out,number,Number of scheduled route records departing this airport.
n_routes_in,number,Number of scheduled route records arriving at this airport.
n_airlines,number,Distinct airlines operating to or from the airport.
n_destinations,number,Distinct airports reachable in one non-stop hop.
n_destinations_international,number,Distinct destination airports outside the airport's own country.
n_countries_served,number,Distinct foreign countries reachable non-stop.
n_domestic_routes,number,Route records whose origin and destination are in the same country.
share_international_pct,number,Percentage of this airport's route records that cross a border.
top_airline,string,Airline with the most route records at this airport.
top_airline_routes,number,Route records operated by that airline.
mean_route_distance_km,number,Mean great-circle distance of this airport's routes.
max_route_distance_km,number,Longest non-stop route from this airport.
farthest_destination,string,Airport code of that longest route.
hub_class,string,"Network role from route count: Isolated, Feeder, Regional, Major, Global hub."
capital_distance_km,string,Great-circle distance to the country's capital city.
is_near_capital,string,true when the airport is within 40 km of its country's capital.
routes_per_million_people,number,Route records divided by country population in millions.
country_population,number,"Country population (World Bank, joined)."
country_gdp_per_capita_usd,number,"Country GDP per capita (World Bank, joined)."
airports_in_country,number,Number of airports in this file for the same country.
name_word_count,number,Number of words in the airport name.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257{
"title": "World Airport Network",
"id": "samyakrajbayar/world-airport-network",
"subtitle": "7,698 airports with IATA/ICAO codes, coordinates and route graph statistics",
"description": "# World Airport Network\n\n**Subtitle:** 7,698 airports with IATA/ICAO codes, coordinates and route graph statistics\n\n**Tags:** `aviation`, `transportation`, `geospatial`, `networks`, `airports`, `travel`, `logistics`, `graph-analysis`, `tabular`, `economics`\n\n**Dataset File:** `airports.csv` (7,698 rows, 43 columns, 1.9 MB)\n\n---\n\n## \ud83d\udcd6 Description\n\n### The world's airports as a graph\n\nOpenFlights maintains one of the most widely used open aviation registries. This dataset joins its\n**airport directory** with its **airline route table** to describe **7,698 airports** in\n237 countries using **43 parameters** \u2014 including the network structure\nthat only appears once routes are aggregated.\n\nEach row is one airport and contains:\n- **Identity** \u2014 OpenFlights id, name, city, country, IATA and ICAO codes, facility type and data source.\n- **Position** \u2014 latitude, longitude, elevation in feet, UTC offset, DST rule and IANA time zone.\n- **Network degree** \u2014 departing and arriving route records, distinct airlines, distinct non-stop\n destinations, foreign destinations, countries served, domestic versus international route counts and\n the international share.\n- **Dominant carrier** \u2014 the airline with the most routes at that airport and how many it runs.\n- **Reach** \u2014 mean and maximum great-circle route distance, and the airport code of the longest hop.\n- **Role** \u2014 a hub class derived from route count, from Isolated to Global hub.\n- **Country context** \u2014 continent, UN region and sub-region, population, GDP per capita, distance to the\n national capital, a near-capital flag, the number of airports in the country and routes per million people.\n\n**7,698 of 7,698 records are scheduled-service airports**; about **3,262** have at least\none route in the airlines table, which makes the difference between \"an airport exists\" and \"an airport is\nconnected\" directly measurable.\n\n## \ud83e\uddfe Columns (43)\n\n`airport_id`, `name`, `city`, `country`, `iata`, `icao`, `latitude`, `longitude`, `altitude_ft`, `tz_offset_hours`, `dst`, `tz_database`, `type`, `source`, `continent`, `region`, `subregion`, `hemisphere`, `altitude_band`, `has_iata`, `is_scheduled_service`, `utc_offset_band`, `n_routes_out`, `n_routes_in`, `n_airlines`, `n_destinations`, `n_destinations_international`, `n_countries_served`, `n_domestic_routes`, `share_international_pct`, `top_airline`, `top_airline_routes`, `mean_route_distance_km`, `max_route_distance_km`, `farthest_destination`, `hub_class`, `capital_distance_km`, `is_near_capital`, `routes_per_million_people`, `country_population`, `country_gdp_per_capita_usd`, `airports_in_country`, `name_word_count`\n\n## \ud83d\udca1 Ideas for using this data\n\n1. **Airport ranking** \u2014 build a hub index from degree, destination count and international share.\n2. **Network analysis** \u2014 the route table implies a directed graph; compute centrality, communities and degree distributions from the per-airport aggregates.\n3. **Hub-and-spoke structure** \u2014 plot `n_destinations` against `n_airlines` to separate fortress hubs from diversified ones.\n4. **Long-haul geography** \u2014 map `max_route_distance_km`; which airports exist only because of ultra-long-haul aircraft?\n5. **Isolation** \u2014 find countries where many airports exist but almost none are connected.\n6. **Capital concentration** \u2014 `capital_distance_km` versus route count; how much traffic funnels through capital-city airports?\n7. **Aviation and wealth** \u2014 `routes_per_million_people` against GDP per capita.\n8. **Time zones** \u2014 airports per UTC offset band; where does the world's air traffic actually sit?\n9. **Classification** \u2014 predict `hub_class` from geography and country features.\n\n## \ud83d\udcc1 Files\n\n| File | What it is |\n|---|---|\n| `airports.csv` | 7,698 airports x 43 parameters, route-network enriched. |\n| `data_dictionary.csv` | Column / type / description for every field. |\n| `notebook.ipynb` | Starter notebook: hub ranking, long-haul map, wealth vs connectivity. |\n| `dataset-metadata.json` | Kaggle API metadata. |\n| `about.md` | Plain-text About block. |\n\n## \ud83c\udff7\ufe0f Tags\n\n`aviation`, `transportation`, `geospatial`, `networks`, `airports`, `travel`, `logistics`, `graph-analysis`, `tabular`, `economics`\n\n## \ud83d\udd17 Provenance\n\n- **Source:** **OpenFlights** open data, `airports.dat` and `routes.dat`\n (`github.com/jpatokal/openflights/data`). Airport records ultimately derive from OurAirports and DAFIF;\n route records are contributed by airlines and the OpenFlights community.\n- **Licence of the upstream files:** Open Database License (ODbL) 1.0.\n- **Transformation:** airport rows reshaped into 14 named columns; the route table aggregated per airport\n to produce degree, destination, airline, distance and domestic/international statistics.\n- **Enrichment:** country population, GDP per capita, capital coordinates and UN regions joined from the\n World Bank-backed `countries-of-the-world` table in this repository by country name.\n- **Snapshot date:** 20 November 2026.\n\n## \ud83d\udd04 Update frequency\n\n**Never (static snapshot).** OpenFlights is largely frozen upstream; the network statistics here reflect the route table as of the snapshot date.\n\n## \u26a0\ufe0f Caveats\n\n- Route coverage is community-maintained and uneven: some regions (notably parts of Africa and Central Asia) are under-reported.\n- `\\N` marks a missing IATA/ICAO code and is preserved rather than blanked so it can be filtered explicitly.\n- Routes are counted as records in `routes.dat`; a route operated by three airlines counts three times.\n- The country join is by name, so a few territories (e.g. 'Hong Kong', 'Macau') may not match a World Bank entity.\n- Distances are great-circle, not flown track distances.\n- The file is a snapshot of schedules, not of passenger volumes \u2014 no traffic or seat-capacity figures are included.\n\n## \ud83d\udcdc Licence\n\nOpen Database License (ODbL) 1.0 for the OpenFlights airport and route data. Derived statistics may be shared under the same terms; attribution to OpenFlights and OurAirports is required.\n\n### \ud83d\udccb Column Definitions & File Header\n\n| # | Column Name | Data Type | Description |\n|---|---|---|---|\n| 1 | `airport_id` | `number` | OpenFlights airport identifier. |\n| 2 | `name` | `string` | Airport name. |\n| 3 | `city` | `string` | City served. |\n| 4 | `country` | `string` | Country name as recorded by OpenFlights. |\n| 5 | `iata` | `string` | 3-letter IATA code (\\N when unassigned). |\n| 6 | `icao` | `string` | 4-letter ICAO code (\\N when unassigned). |\n| 7 | `latitude` | `number` | Latitude in decimal degrees. |\n| 8 | `longitude` | `number` | Longitude in decimal degrees. |\n| 9 | `altitude_ft` | `number` | Elevation above sea level in feet. |\n| 10 | `tz_offset_hours` | `number` | UTC offset in hours (fractional where applicable). |\n| 11 | `dst` | `string` | Daylight-saving-time rule letter used by OpenFlights. |\n| 12 | `tz_database` | `string` | IANA time-zone name. |\n| 13 | `type` | `string` | Facility type: airport, heliport, seaplane base, closed. |\n| 14 | `source` | `string` | Upstream data source for the record. |\n| 15 | `continent` | `string` | Continent of the airport's country. |\n| 16 | `region` | `string` | UN macro-region of the airport's country. |\n| 17 | `subregion` | `string` | UN sub-region of the airport's country. |\n| 18 | `hemisphere` | `string` | Northern or Southern hemisphere. |\n| 19 | `altitude_band` | `string` | Elevation band from sea level to high plateau. |\n| 20 | `has_iata` | `boolean` | true when the airport has an IATA code (i.e. is commercially ticketed). |\n| 21 | `is_scheduled_service` | `boolean` | true for records typed `airport` (as opposed to heliport, seaplane base, closed). |\n| 22 | `utc_offset_band` | `number` | UTC offset rounded to the nearest whole hour. |\n| 23 | `n_routes_out` | `number` | Number of scheduled route records departing this airport. |\n| 24 | `n_routes_in` | `number` | Number of scheduled route records arriving at this airport. |\n| 25 | `n_airlines` | `number` | Distinct airlines operating to or from the airport. |\n| 26 | `n_destinations` | `number` | Distinct airports reachable in one non-stop hop. |\n| 27 | `n_destinations_international` | `number` | Distinct destination airports outside the airport's own country. |\n| 28 | `n_countries_served` | `number` | Distinct foreign countries reachable non-stop. |\n| 29 | `n_domestic_routes` | `number` | Route records whose origin and destination are in the same country. |\n| 30 | `share_international_pct` | `number` | Percentage of this airport's route records that cross a border. |\n| 31 | `top_airline` | `string` | Airline with the most route records at this airport. |\n| 32 | `top_airline_routes` | `number` | Route records operated by that airline. |\n| 33 | `mean_route_distance_km` | `number` | Mean great-circle distance of this airport's routes. |\n| 34 | `max_route_distance_km` | `number` | Longest non-stop route from this airport. |\n| 35 | `farthest_destination` | `string` | Airport code of that longest route. |\n| 36 | `hub_class` | `string` | Network role from route count: Isolated, Feeder, Regional, Major, Global hub. |\n| 37 | `capital_distance_km` | `string` | Great-circle distance to the country's capital city. |\n| 38 | `is_near_capital` | `string` | true when the airport is within 40 km of its country's capital. |\n| 39 | `routes_per_million_people` | `number` | Route records divided by country population in millions. |\n| 40 | `country_population` | `number` | Country population (World Bank, joined). |\n| 41 | `country_gdp_per_capita_usd` | `number` | Country GDP per capita (World Bank, joined). |\n| 42 | `airports_in_country` | `number` | Number of airports in this file for the same country. |\n| 43 | `name_word_count` | `number` | Number of words in the airport name. |\n\n\n\n---\n\n## \ud83c\udf1f Support & Community\nIf you find this dataset valuable for your research, portfolio, or machine learning projects, **please give it an upvote (\ud83d\udc4d) on Kaggle!**\nFeedback, questions, and notebook submissions are warmly welcomed in the Discussions tab.\n",
"isPrivate": false,
"licenses": [
{
"name": "ODbL-1.0"
}
],
"keywords": [
"aviation",
"transportation",
"geospatial",
"networks",
"airports",
"travel",
"logistics",
"graph-analysis",
"tabular",
"economics"
],
"resources": [
{
"path": "airports.csv",
"description": "Primary data file containing 7,698 records across 43 parameters.",
"schema": {
"fields": [
{
"name": "airport_id",
"type": "number",
"description": "OpenFlights airport identifier."
},
{
"name": "name",
"type": "string",
"description": "Airport name."
},
{
"name": "city",
"type": "string",
"description": "City served."
},
{
"name": "country",
"type": "string",
"description": "Country name as recorded by OpenFlights."
},
{
"name": "iata",
"type": "string",
"description": "3-letter IATA code (\\N when unassigned)."
},
{
"name": "icao",
"type": "string",
"description": "4-letter ICAO code (\\N when unassigned)."
},
{
"name": "latitude",
"type": "number",
"description": "Latitude in decimal degrees."
},
{
"name": "longitude",
"type": "number",
"description": "Longitude in decimal degrees."
},
{
"name": "altitude_ft",
"type": "number",
"description": "Elevation above sea level in feet."
},
{
"name": "tz_offset_hours",
"type": "number",
"description": "UTC offset in hours (fractional where applicable)."
},
{
"name": "dst",
"type": "string",
"description": "Daylight-saving-time rule letter used by OpenFlights."
},
{
"name": "tz_database",
"type": "string",
"description": "IANA time-zone name."
},
{
"name": "type",
"type": "string",
"description": "Facility type: airport, heliport, seaplane base, closed."
},
{
"name": "source",
"type": "string",
"description": "Upstream data source for the record."
},
{
"name": "continent",
"type": "string",
"description": "Continent of the airport's country."
},
{
"name": "region",
"type": "string",
"description": "UN macro-region of the airport's country."
},
{
"name": "subregion",
"type": "string",
"description": "UN sub-region of the airport's country."
},
{
"name": "hemisphere",
"type": "string",
"description": "Northern or Southern hemisphere."
},
{
"name": "altitude_band",
"type": "string",
"description": "Elevation band from sea level to high plateau."
},
{
"name": "has_iata",
"type": "boolean",
"description": "true when the airport has an IATA code (i.e. is commercially ticketed)."
},
{
"name": "is_scheduled_service",
"type": "boolean",
"description": "true for records typed `airport` (as opposed to heliport, seaplane base, closed)."
},
{
"name": "utc_offset_band",
"type": "number",
"description": "UTC offset rounded to the nearest whole hour."
},
{
"name": "n_routes_out",
"type": "number",
"description": "Number of scheduled route records departing this airport."
},
{
"name": "n_routes_in",
"type": "number",
"description": "Number of scheduled route records arriving at this airport."
},
{
"name": "n_airlines",
"type": "number",
"description": "Distinct airlines operating to or from the airport."
},
{
"name": "n_destinations",
"type": "number",
"description": "Distinct airports reachable in one non-stop hop."
},
{
"name": "n_destinations_international",
"type": "number",
"description": "Distinct destination airports outside the airport's own country."
},
{
"name": "n_countries_served",
"type": "number",
"description": "Distinct foreign countries reachable non-stop."
},
{
"name": "n_domestic_routes",
"type": "number",
"description": "Route records whose origin and destination are in the same country."
},
{
"name": "share_international_pct",
"type": "number",
"description": "Percentage of this airport's route records that cross a border."
},
{
"name": "top_airline",
"type": "string",
"description": "Airline with the most route records at this airport."
},
{
"name": "top_airline_routes",
"type": "number",
"description": "Route records operated by that airline."
},
{
"name": "mean_route_distance_km",
"type": "number",
"description": "Mean great-circle distance of this airport's routes."
},
{
"name": "max_route_distance_km",
"type": "number",
"description": "Longest non-stop route from this airport."
},
{
"name": "farthest_destination",
"type": "string",
"description": "Airport code of that longest route."
},
{
"name": "hub_class",
"type": "string",
"description": "Network role from route count: Isolated, Feeder, Regional, Major, Global hub."
},
{
"name": "capital_distance_km",
"type": "string",
"description": "Great-circle distance to the country's capital city."
},
{
"name": "is_near_capital",
"type": "string",
"description": "true when the airport is within 40 km of its country's capital."
},
{
"name": "routes_per_million_people",
"type": "number",
"description": "Route records divided by country population in millions."
},
{
"name": "country_population",
"type": "number",
"description": "Country population (World Bank, joined)."
},
{
"name": "country_gdp_per_capita_usd",
"type": "number",
"description": "Country GDP per capita (World Bank, joined)."
},
{
"name": "airports_in_country",
"type": "number",
"description": "Number of airports in this file for the same country."
},
{
"name": "name_word_count",
"type": "number",
"description": "Number of words in the airport name."
}
]
}
},
{
"path": "data_dictionary.csv",
"description": "Full field-level data dictionary detailing column names, data types, and semantic definitions."
},
{
"path": "notebook.ipynb",
"description": "Starter exploratory data analysis notebook."
}
]
}1234567891011121314{
"id": "samyakrajbayar/world-airport-network-starter-notebook",
"title": "World Airport Network Starter Notebook",
"code_file": "notebook.ipynb",
"language": "python",
"kernel_type": "notebook",
"is_private": false,
"enable_gpu": false,
"enable_tpu": false,
"enable_internet": true,
"dataset_sources": [
"samyakrajbayar/world-airport-network"
]
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213{ "cells": [ { "cell_type": "markdown", "id": "81eccfe7", "metadata": {}, "source": [ "# World Airport Network\n", "\n", "Starter notebook for the Kaggle dataset in this folder. It loads `airports.csv` with pandas and walks through quality checks and a first piece of analysis.\n", "\n", "**Files:** `airports.csv`, `data_dictionary.csv`." ] }, { "cell_type": "markdown", "id": "0000f7f2", "metadata": {}, "source": [ "## 1. Load the data" ] }, { "cell_type": "code", "id": "a3222460", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "import pandas as pd\n", "\n", "df = pd.read_csv(\"airports.csv\", low_memory=False)\n", "df[\"routes\"] = df[\"n_routes_out\"].fillna(0) + df[\"n_routes_in\"].fillna(0)\n", "print(df.shape)\n", "df.head(3)" ] }, { "cell_type": "markdown", "id": "325de123", "metadata": {}, "source": [ "## 2. Shape, types and missing values" ] }, { "cell_type": "code", "id": "c995eab3", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "import pandas as pd\n", "\n", "print(f\"{df.shape[0]:,} rows x {df.shape[1]} columns\")\n", "\n", "missing = df.isna().mean().mul(100).sort_values(ascending=False)\n", "missing[missing > 0].round(1).to_frame(\"missing_%\").head(15)" ] }, { "cell_type": "markdown", "id": "f2d963fe", "metadata": {}, "source": [ "## 3. Numeric summary" ] }, { "cell_type": "code", "id": "aa2f8fd4", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "df.describe(include='number').T.round(2).head(20)" ] }, { "cell_type": "markdown", "id": "48da4abf", "metadata": {}, "source": [ "## 4. Busiest airports by route records" ] }, { "cell_type": "code", "id": "9e1066a1", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "df.nlargest(15, \"routes\")[[\"name\", \"city\", \"country\", \"iata\", \"routes\",\n", " \"n_destinations\", \"n_airlines\"]].set_index(\"iata\")" ] }, { "cell_type": "markdown", "id": "36a65583", "metadata": {}, "source": [ "## 5. Hub classes\n", "\n", "How many airports sit in each network role?" ] }, { "cell_type": "code", "id": "d4a31929", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "df[\"hub_class\"].value_counts().plot.bar(figsize=(8, 4))" ] }, { "cell_type": "markdown", "id": "36d83338", "metadata": {}, "source": [ "## 6. Long-haul map\n", "\n", "Airports with the longest non-stop routes." ] }, { "cell_type": "code", "id": "906036a7", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "long = df.dropna(subset=[\"max_route_distance_km\"]).nlargest(20, \"max_route_distance_km\")\n", "long[[\"name\", \"city\", \"country\", \"max_route_distance_km\", \"farthest_destination\"]].set_index(\"name\")" ] }, { "cell_type": "markdown", "id": "8a8606ef", "metadata": {}, "source": [ "## 7. Connectivity vs wealth" ] }, { "cell_type": "code", "id": "5fe95413", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "sub = df.dropna(subset=[\"country_gdp_per_capita_usd\", \"routes_per_million_people\"])\n", "sub = sub[sub[\"routes\"] > 0]\n", "sub.plot.scatter(x=\"country_gdp_per_capita_usd\", y=\"routes_per_million_people\", logx=True, s=10, figsize=(8, 5))" ] }, { "cell_type": "markdown", "id": "552e537e", "metadata": {}, "source": [ "## 8. Domestic vs international mix for the top 25 airports" ] }, { "cell_type": "code", "id": "5675896b", "metadata": {}, "execution_count": null, "outputs": [], "source": [ "top = df.nlargest(25, \"routes\").set_index(\"iata\")\n", "(top[[\"n_domestic_routes\", \"n_routes_out\"]]\n", " .assign(international=lambda t: t[\"n_routes_out\"] - t[\"n_domestic_routes\"])\n", " [[\"n_domestic_routes\", \"international\"]]\n", " .plot.barh(stacked=True, figsize=(9, 7)))" ] }, { "cell_type": "markdown", "id": "6e43770c", "metadata": {}, "source": [ "## Next steps\n", "\n", "See `KAGGLE.md` for analysis ideas, caveats and provenance." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "name": "python", "version": "3.11", "mimetype": "text/x-python", "file_extension": ".py", "codemirror_mode": { "name": "ipython", "version": 3 }, "pygments_lexer": "ipython3", "nbconvert_exporter": "python" } }, "nbformat": 4, "nbformat_minor": 5}KAGGLE.mdAdded+149
README.mdAdded+158
about.mdAdded+26
airports.csvAdded
data_dictionary.csvAdded+44
dataset-metadata.jsonAdded+257
kernel-metadata.jsonAdded+14
notebook.ipynbAdded+213