datasets real and made-up data to practise on
Datasets
Data for the Playground, Database Lab and Performance Lab. Pick one and open its files.
Real U.S. domestic flights from early 2025: schedules, delays, cancellations and diversions.
1,301 flights4 tablesJan 2025 – Mar 2025
what to watch for
Tricky rows
- Cancelled flights: no actual times or delays (unknown, not zero)228 rows
- Diverted flights: departed but never arrived at the scheduled destination3 rows
- Flights that arrived early (negative arrival delay)568 rows
- Flights scheduled to arrive on a later calendar date than they departed22 rows
files
Open a file to see what one row means, its columns and a preview. Open in Playground starts a new file there with code that loads it.
flights1,301 rows · 24 columns · CSV
One scheduled flight, including cancelled and diverted flights.
In your code: data/flights.csv
- flight_id
Flight ID
- flight_date
Scheduled departure date (local)
- airline_code
Airline code
- flight_number
Flight number
- tail_number
Aircraft registration
- origin
Departure airport
- destination
Arrival airport
- scheduled_departure
Scheduled departure, origin local time
- actual_departure
Actual departure, origin local time
- departure_delay
Minutes late leaving (negative = early)
- taxi_out_minutes
Minutes from leaving the gate to take-off
- scheduled_arrival
Scheduled arrival, destination local time
- actual_arrival
Actual arrival, destination local time
- arrival_delay
Minutes late arriving (negative = early)
- air_time_minutes
Minutes in the air
- distance_miles
Route distance, miles
- cancelled
1 if cancelled
- cancellation_code
Why it was cancelled
- diverted
1 if diverted
- carrier_delay
Delay minutes blamed on the airline (arrivals 15+ minutes late only)
- weather_delay
Delay minutes due to weather
- nas_delay
Delay minutes due to air traffic control and airport congestion
- security_delay
Delay minutes due to security
- late_aircraft_delay
Delay minutes because the aircraft arrived late
airlines14 rows · 3 columns · CSV
One airline.
In your code: data/airlines.csv
- airline_code
Airline code
- airline_name
Airline name
- carrier_group
network, low-cost, ultra-low-cost or regional
airports187 rows · 8 columns · CSV
One airport that a flight here departs from or arrives at.
In your code: data/airports.csv
- airport_code
Three-letter airport code
- airport_name
Airport name; sometimes empty
- city
City
- state
State or territory code
- state_name
State or territory
- latitude
Latitude
- longitude
Longitude
- elevation_ft
Elevation, feet
cancellation_reasons4 rows · 2 columns · CSV
What each cancellation code means.
In your code: data/cancellation_reasons.csv
- code
Code
- reason
Reason
relationships
How to join these tables. Left column matches the right column.
- flights.airline_code → airlines.airline_code
- flights.origin → airports.airport_code
- flights.destination → airports.airport_code
- flights.cancellation_code → cancellation_reasons.code