airlines icon

Airlines Python Library

From the CORGIS Dataset Project

By Austin Cory Bart acbart@vt.edu
Version 2.0.0, created 3/27/2015
Tags: airplane, airports, travel, plane, air, flights, delays, national, united states, transportation

Overview

This dataset is all about flights in the united states, including information about the number, length, and type of delays. The data is reported for individual months at every major airport for every carrier. Additional information is available: http://www.rita.dot.gov/bts/help/aviation/html/understanding.html

Explore Structure

Each row represents a report from an airport aggregated over each month since 2003.

Index Type Example Value
0 dict { }
1 dict (same structure)
2 dict (same structure)
... ... ...
Key Type Example Value Description
"Airport" dict { }
"Time" dict { }
"Statistics" dict { }
Key Type Example Value Description
"Code" str "ATL" The 3 letter code for this airport, assigned by IATA. For more information, consult this List of Airport Codes.
"Name" str "Atlanta, GA: Hartsfield-Jackson Atlanta International" The full name of this airport.
Key Type Example Value Description
"Label" str "2003/06" The "year/month" reported as a string, to make it easier to sort by time periods.
"Month" int 6 The reported month as a number. 0 is January, 1 is February, etc.
"Month Name" str "June" $MISSING_FIELD
"Year" int 2003 The reported year as a 4-digit number.
Key Type Example Value Description
"# of Delays" dict { }
"Carriers" dict { }
"Flights" dict { }
"Minutes Delayed" dict { }
Key Type Example Value Description
"Carrier" int 1009 The number of delays and cancellations due to circumstances within the airline's control (e.g. maintenance or crew problems, aircraft cleaning, baggage loading, fueling, etc.) in this month.
"Late Aircraft" int 1275 The number of delays and cancellations caused by a previous flight with the same aircraft arriving late, causing the present flight to depart late in this month.
"National Aviation System" int 3217 The number of delays and cancellations attributable to the national aviation system that refer to a broad set of conditions, such as non-extreme weather conditions, airport operations, heavy traffic volume, and air traffic control in this month.
"Security" int 17 Number of delays or cancellations caused by evacuation of a terminal or concourse, re-boarding of aircraft because of security breach, inoperative screening equipment and/or long lines in excess of 29 minutes at screening areas in this month.
"Weather" int 328 Number of delays or cancellations caused by significant meteorological conditions (actual or forecasted) that, in the judgment of the carrier, delays or prevents the operation of a flight such as tornado, blizzard or hurricane in this month.
Key Type Example Value Description
"Names" str "American Airlines Inc.,JetBlue Airways,Continental Air Lines Inc.,Delta Air Lines Inc.,Atlantic Southeast Airlines,AirTran Airways Corporation,America West Airlines Inc.,Northwest Airlines Inc.,ExpressJet Airlines Inc.,United Air Lines Inc.,US Airways Inc." The full names of the carriers that reported in.
"Total" int 11 The number of carriers that reported flight information during this time period and at this location.
Key Type Example Value Description
"Cancelled" int 216 The number of flights that were cancelled in this month.
"Delayed" int 5843 The number of flights that were delayed in this month.
"Diverted" int 27 The number of flights that were diverted in this month.
"On Time" int 23974 The number of flights that were on time in this month.
"Total" int 30060 The total number of flights in this month.
Key Type Example Value Description
"Carrier" int 61606 The number of minutes delayed due to circumstances within the airline's control (e.g. maintenance or crew problems, aircraft cleaning, baggage loading, fueling, etc.) in this month.
"Late Aircraft" int 68335 The number of minutes delayed caused by a previous flight with the same aircraft arriving late, causing the present flight to depart late in this month.
"National Aviation System" int 118831 The number of minutes delayed attributable to the national aviation system that refer to a broad set of conditions, such as non-extreme weather conditions, airport operations, heavy traffic volume, and air traffic control in this month.
"Security" int 518 Number of minutes delayed caused by evacuation of a terminal or concourse, re-boarding of aircraft because of security breach, inoperative screening equipment and/or long lines in excess of 29 minutes at screening areas in this month.
"Total" int 268764 $MISSING_FIELD
"Weather" int 19474 Number of of minutes delayed caused by significant meteorological conditions (actual or forecasted) that, in the judgment of the carrier, delays or prevents the operation of a flight such as tornado, blizzard or hurricane in this month.

Downloads

Download all of the following files.

  1. airlines.py
  2. airlines.data

Usage

import airlines
airports = airlines.get_airports()

Documentation

get_airports()
Returns a list of dictionaries representing airports.