Skip to content

Commit 2f6b362

Browse files
authored
Add files via upload
1 parent b1fe623 commit 2f6b362

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

data/flightroute/flights_data.ipynb

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
" # construct full file path\n",
138138
" old_name = os.path.join(data_folder, air_data)\n",
139139
"\n",
140-
" # Changing the extension from dat to csv\n",
140+
" # Changing the extension from .dat to .csv\n",
141141
" new_name = old_name.replace('.dat', '.csv')\n",
142142
" os.rename(old_name, new_name)\n",
143143
"\n",
@@ -169,9 +169,8 @@
169169
"airport_list = pd.read_csv('data/airports.csv',\n",
170170
"delimiter=',',names=['airport_id', 'airport_name', 'city', 'country',\n",
171171
"'iata_c', 'icao_c','lat', 'long', 'altitude', 'time_z', 'dst', 'tz_data', 'air_type', 'source'])\n",
172-
"# Headers are not included in the CSV, so they are instead based on those in the\n",
173-
"# dictionary here:\n",
174-
"# https://www.partow.net/miscellaneous/airportdatabase/index.html )\n",
172+
"# Headers are based on openflights.org data headers.\n",
173+
"# https://openflights.org/data\n",
175174
"airport_list"
176175
],
177176
"metadata": {
@@ -741,9 +740,8 @@
741740
"route = pd.read_csv('data/routes.csv',\n",
742741
"delimiter=',',names=['airline', 'airline_id', 's_airport', 's_airport_id',\n",
743742
"'d_airport', 'd_airport_id','code_s', 'flight_stops', 'equip'])\n",
744-
"# Headers are not included in the CSV, so they are instead based on those in the\n",
745-
"# dictionary here:\n",
746-
"# https://www.partow.net/miscellaneous/airportdatabase/index.html )\n",
743+
"# Headers are based on openflights.org data headers.\n",
744+
"# https://openflights.org/data\n",
747745
"route"
748746
],
749747
"metadata": {
@@ -1239,9 +1237,8 @@
12391237
"source": [
12401238
"country = pd.read_csv('data/countries.csv',\n",
12411239
"delimiter=',',names=['c_name', 'iso_c', 'dafif_c'])\n",
1242-
"# Headers are not included in the CSV, so they are instead based on those in the\n",
1243-
"# dictionary here:\n",
1244-
"# https://www.partow.net/miscellaneous/airportdatabase/index.html )\n",
1240+
"# Headers are based on openflights.org data headers.\n",
1241+
"# https://openflights.org/data\n",
12451242
"country"
12461243
],
12471244
"metadata": {
@@ -1653,9 +1650,8 @@
16531650
"airline = pd.read_csv('data/airlines.csv',\n",
16541651
"delimiter=',',names=['airline_id', 'airline', 'alias', 'iata_c',\n",
16551652
"'icao_c', 'callsign','c_name', 'active'])\n",
1656-
"# Headers are not included in the CSV, so they are instead based on those in the\n",
1657-
"# dictionary here:\n",
1658-
"# https://www.partow.net/miscellaneous/airportdatabase/index.html )\n",
1653+
"# Headers are based on openflights.org data headers.\n",
1654+
"# https://openflights.org/data\n",
16591655
"airline"
16601656
],
16611657
"metadata": {
@@ -2139,9 +2135,8 @@
21392135
"source": [
21402136
"plane = pd.read_csv('data/planes.csv',\n",
21412137
"delimiter=',',names=['p_name', 'iata_c', 'icao_c'])\n",
2142-
"# Headers are not included in the CSV, so they are instead based on those in the\n",
2143-
"# dictionary here:\n",
2144-
"# https://www.partow.net/miscellaneous/airportdatabase/index.html )\n",
2138+
"# Headers are based on openflights.org data headers.\n",
2139+
"# https://openflights.org/data\n",
21452140
"plane"
21462141
],
21472142
"metadata": {

0 commit comments

Comments
 (0)