Datasets:
Upload folder using huggingface_hub
Browse files- README.md +254 -0
- airlines/data.parquet +3 -0
- airports/data.parquet +3 -0
- airports_extended/data.parquet +3 -0
- countries/data.parquet +3 -0
- planes/data.parquet +3 -0
- routes/data.parquet +3 -0
README.md
ADDED
|
@@ -0,0 +1,254 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
language: en
|
| 4 |
+
license: odbl
|
| 5 |
+
pretty_name: OpenFlights - Complete Dataset
|
| 6 |
+
tags:
|
| 7 |
+
- aviation
|
| 8 |
+
- airports
|
| 9 |
+
- routes
|
| 10 |
+
- airlines
|
| 11 |
+
configs:
|
| 12 |
+
- config_name: airlines
|
| 13 |
+
data_files:
|
| 14 |
+
- split: default
|
| 15 |
+
path: "airlines/data.parquet"
|
| 16 |
+
|
| 17 |
+
- config_name: airports
|
| 18 |
+
data_files:
|
| 19 |
+
- split: default
|
| 20 |
+
path: "airports/data.parquet"
|
| 21 |
+
|
| 22 |
+
- config_name: airports_extended
|
| 23 |
+
data_files:
|
| 24 |
+
- split: default
|
| 25 |
+
path: "airports_extended/data.parquet"
|
| 26 |
+
|
| 27 |
+
- config_name: countries
|
| 28 |
+
data_files:
|
| 29 |
+
- split: default
|
| 30 |
+
path: "countries/data.parquet"
|
| 31 |
+
|
| 32 |
+
- config_name: planes
|
| 33 |
+
data_files:
|
| 34 |
+
- split: default
|
| 35 |
+
path: "planes/data.parquet"
|
| 36 |
+
|
| 37 |
+
- config_name: routes
|
| 38 |
+
data_files:
|
| 39 |
+
- split: default
|
| 40 |
+
path: "routes/data.parquet"
|
| 41 |
+
---
|
| 42 |
+
<a name="readme-top"></a>
|
| 43 |
+
|
| 44 |
+
<!-- PROJECT LOGO -->
|
| 45 |
+
<br />
|
| 46 |
+
<div align="center">
|
| 47 |
+
<a href="https://openflights.org/data">
|
| 48 |
+
<img src="https://openflights.org/img/icon_favicon.png" alt="OpenFlights Logo" width="90" height="90">
|
| 49 |
+
</a>
|
| 50 |
+
|
| 51 |
+
<h1 align="center">OpenFlights - Complete Dataset</h1>
|
| 52 |
+
|
| 53 |
+
<p align="center">
|
| 54 |
+
A fully structured and Parquet-optimized version of the OpenFlights open aviation database.
|
| 55 |
+
<br />
|
| 56 |
+
<i>This dataset is redistributed for convenience. I am not the owner of the data. All source data is originally provided by OpenFlights.</i>
|
| 57 |
+
<br />
|
| 58 |
+
<a href="https://openflights.org/data">OpenFlights (Website)</a>
|
| 59 |
+
⸱
|
| 60 |
+
<a href="mailto:kylian.mallet@sklav.group">Contact Me</a>
|
| 61 |
+
</p>
|
| 62 |
+
</p>
|
| 63 |
+
</div>
|
| 64 |
+
|
| 65 |
+
---
|
| 66 |
+
|
| 67 |
+
<details>
|
| 68 |
+
<summary>Table of Contents</summary>
|
| 69 |
+
<ol>
|
| 70 |
+
<li><a href="#about-the-dataset">About the Dataset</a></li>
|
| 71 |
+
<li><a href="#datasets-structure">Datasets Structure</a></li>
|
| 72 |
+
<li><a href="#schema">Schema</a></li>
|
| 73 |
+
<li><a href="#usage">Usage</a></li>
|
| 74 |
+
<li><a href="#licensing--attribution">Licensing & Attribution</a></li>
|
| 75 |
+
<li><a href="#source">Source</a></li>
|
| 76 |
+
</ol>
|
| 77 |
+
</details>
|
| 78 |
+
|
| 79 |
+
## About the Dataset
|
| 80 |
+
|
| 81 |
+
This repository provides the OpenFlights database exported into **columnar Parquet format**, enabling efficient analysis, filtering, joins, and machine learning workflows.
|
| 82 |
+
|
| 83 |
+
It is designed as a multi-configuration dataset, where each table is stored as its own configuration with a single split named `default`.
|
| 84 |
+
|
| 85 |
+
Included data:
|
| 86 |
+
|
| 87 |
+
- Airports (basic + extended metadata)
|
| 88 |
+
- Airlines
|
| 89 |
+
- Routes between airports
|
| 90 |
+
- Aircraft models (planes)
|
| 91 |
+
- Countries with ISO codes
|
| 92 |
+
|
| 93 |
+
All Null/OpenFlights `\N` placeholders were converted to standard `NaN` values for clean schema typing.
|
| 94 |
+
|
| 95 |
+
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
| 96 |
+
|
| 97 |
+
## Datasets Structure
|
| 98 |
+
|
| 99 |
+
This dataset contains **6 subsets** :
|
| 100 |
+
|
| 101 |
+
| Configurations | Description |
|
| 102 |
+
|-----------|-------------|
|
| 103 |
+
| `airports` | All known airport infrastructure worldwide |
|
| 104 |
+
| `airports_extended` | Enhanced airport metadata (time zones, DST, categories, etc.) |
|
| 105 |
+
| `airlines` | Commercial & private airlines with active status |
|
| 106 |
+
| `routes` | Direct flight connections (airline + equipment info) |
|
| 107 |
+
| `planes` | Aircraft types and codes |
|
| 108 |
+
| `countries` | Country reference table (ISO 3166-1) |
|
| 109 |
+
|
| 110 |
+
Note : Each configuration has a single split: `default`.
|
| 111 |
+
|
| 112 |
+
Designed for relational joins using identifiers:
|
| 113 |
+
|
| 114 |
+
- `airlines.AirlineID` ↔ `routes.AirlineID`
|
| 115 |
+
- `airports.AirportID` ↔ `routes.SourceAirportID / DestinationAirportID`
|
| 116 |
+
|
| 117 |
+
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
| 118 |
+
|
| 119 |
+
## Schema
|
| 120 |
+
|
| 121 |
+
### Airports
|
| 122 |
+
|
| 123 |
+
- AirportID (int)
|
| 124 |
+
- Name (string)
|
| 125 |
+
- City (string)
|
| 126 |
+
- Country (string)
|
| 127 |
+
- IATA (string, nullable)
|
| 128 |
+
- ICAO (string, nullable)
|
| 129 |
+
- Latitude (float)
|
| 130 |
+
- Longitude (float)
|
| 131 |
+
- Altitude (int)
|
| 132 |
+
- Timezone (float)
|
| 133 |
+
- DST (string)
|
| 134 |
+
- TzDBTimezone (string)
|
| 135 |
+
|
| 136 |
+
### Airports Extended
|
| 137 |
+
> Same columns as `airports`, but typically higher data completeness and accuracy
|
| 138 |
+
|
| 139 |
+
- AirportID (int)
|
| 140 |
+
- Name (string)
|
| 141 |
+
- City (string)
|
| 142 |
+
- Country (string)
|
| 143 |
+
- IATA (string, nullable)
|
| 144 |
+
- ICAO (string, nullable)
|
| 145 |
+
- Latitude (float)
|
| 146 |
+
- Longitude (float)
|
| 147 |
+
- Altitude (int)
|
| 148 |
+
- Timezone (float)
|
| 149 |
+
- DST (string)
|
| 150 |
+
- TzDBTimezone (string)
|
| 151 |
+
|
| 152 |
+
### Airlines
|
| 153 |
+
|
| 154 |
+
- AirlineID (int)
|
| 155 |
+
- Name (string)
|
| 156 |
+
- Alias (string, nullable)
|
| 157 |
+
- IATA (string, nullable)
|
| 158 |
+
- ICAO (string, nullable)
|
| 159 |
+
- Callsign (string, nullable)
|
| 160 |
+
- Country (string, nullable)
|
| 161 |
+
- Active (string: "Y" / "N")
|
| 162 |
+
|
| 163 |
+
### Routes
|
| 164 |
+
|
| 165 |
+
- Airline (string)
|
| 166 |
+
- AirlineID (int, nullable)
|
| 167 |
+
- SourceAirport (string)
|
| 168 |
+
- SourceAirportID (int, nullable)
|
| 169 |
+
- DestinationAirport (string)
|
| 170 |
+
- DestinationAirportID (int, nullable)
|
| 171 |
+
- Codeshare (string, nullable)
|
| 172 |
+
- Stops (int)
|
| 173 |
+
- Equipment (string)
|
| 174 |
+
|
| 175 |
+
### Planes
|
| 176 |
+
> Referenced in routes using Equipment codes.
|
| 177 |
+
|
| 178 |
+
- PlaneID (int)
|
| 179 |
+
- IATA (string, nullable)
|
| 180 |
+
- ICAO (string, nullable)
|
| 181 |
+
- Name (string)
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
Notes:
|
| 185 |
+
- Some aircraft may only have IATA or ICAO codes
|
| 186 |
+
- PlaneID is an OpenFlights internal identifier
|
| 187 |
+
|
| 188 |
+
### Countries
|
| 189 |
+
> Used as reference for airports and airlines
|
| 190 |
+
|
| 191 |
+
- Name (string)
|
| 192 |
+
- CountryCode (string, nullable - ISO 3166-1 format)
|
| 193 |
+
|
| 194 |
+
Notes:
|
| 195 |
+
- Not all countries have official codes available
|
| 196 |
+
- Used for international standard alignment
|
| 197 |
+
|
| 198 |
+
|
| 199 |
+
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
| 200 |
+
|
| 201 |
+
## Usage
|
| 202 |
+
|
| 203 |
+
Load directly with 🤗 Datasets:
|
| 204 |
+
|
| 205 |
+
```python
|
| 206 |
+
from datasets import load_dataset
|
| 207 |
+
|
| 208 |
+
airports = load_dataset("kylianmallet/openflights", name="airports").get("default")
|
| 209 |
+
routes = load_dataset("kylianmallet/openflights", name="routes").get("default")
|
| 210 |
+
|
| 211 |
+
print(airports.head())
|
| 212 |
+
|
| 213 |
+
```
|
| 214 |
+
|
| 215 |
+
Efficient joins using pandas / Polars / Apache Arrow:
|
| 216 |
+
|
| 217 |
+
```python
|
| 218 |
+
import polars as pl
|
| 219 |
+
from datasets import load_dataset
|
| 220 |
+
|
| 221 |
+
d_airlines = load_dataset("kylianmallet/openflights", name="airlines").get("default")
|
| 222 |
+
d_routes = load_dataset("kylianmallet/openflights", name="routes").get("default")
|
| 223 |
+
|
| 224 |
+
airlines = pl.from_arrow(d_airlines.data.table)
|
| 225 |
+
routes = pl.from_arrow(d_routes.data.table)
|
| 226 |
+
|
| 227 |
+
joined = routes.join(
|
| 228 |
+
airlines,
|
| 229 |
+
left_on="AirlineID",
|
| 230 |
+
right_on="AirlineID",
|
| 231 |
+
how="left"
|
| 232 |
+
)
|
| 233 |
+
|
| 234 |
+
print(joined.head())
|
| 235 |
+
```
|
| 236 |
+
|
| 237 |
+
## Licensing & Attribution
|
| 238 |
+
|
| 239 |
+
This dataset is distributed under the **Open Database License (ODbL 1.0)**.
|
| 240 |
+
|
| 241 |
+
> I do not own or claim ownership of this data.
|
| 242 |
+
> Full copyright and database rights remain with **OpenFlights**.
|
| 243 |
+
|
| 244 |
+
If using this dataset in research or products, attribution to OpenFlights is required.
|
| 245 |
+
See: [https://opendatacommons.org/licenses/odbl/1-0/](https://opendatacommons.org/licenses/odbl/1-0/)
|
| 246 |
+
|
| 247 |
+
## Source
|
| 248 |
+
|
| 249 |
+
Original raw data collected and maintained by:
|
| 250 |
+
|
| 251 |
+
**OpenFlights**
|
| 252 |
+
[https://openflights.org/data](https://openflights.org/data)
|
| 253 |
+
|
| 254 |
+
Many thanks to the contributors who keep the dataset updated.
|
airlines/data.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72454bae6eccb3b6e275420123e2a8a646b6400870107ebcc1c628f13d1915d0
|
| 3 |
+
size 232556
|
airports/data.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c07516f007eef151e947e15a0311ee153e5c9d73e561323b129de2718a81c210
|
| 3 |
+
size 519518
|
airports_extended/data.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0666c52911f72495daa0206ebe1eed1f05f1c35ef1ef67605079f6a334f506a7
|
| 3 |
+
size 787406
|
countries/data.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95bc19679dd3fe28e8b3fba4958514d620c91d9c845f2331afd080c1bb2cdff3
|
| 3 |
+
size 7736
|
planes/data.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f095847d85f84e99150787f1c761925009a30343d30fa9618c5571a61c65c295
|
| 3 |
+
size 7685
|
routes/data.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e79ebddbd7173a472982600e03c6408811215f8390442cdaf97a32521c4d07f3
|
| 3 |
+
size 490735
|