SlideShare a Scribd company logo
1 of 31
Download to read offline
Connected Hubs
1 February 2017
CHAN Sau Yee & WANG Xi
Plan
● Objective
● Lufthansa Open API
● Methodology
● Data analysis
● Data visualisation
2
Objective
● To produce a map that shows the location of airports in Europe and the
direct flights in-between
○ What we need...
■ list of European airports
■ direct flights between any two airports
● To analyse the importance of airports based on the number of
connections needed
○ What we need...
■ list of European airports
■ number of direct flights for each airport
■ rank of airports by number of destinations
3
Definitions
● Case study in Europe (defined as EU28 including Britain, plus Switzerland
and Norway)
● Connection: the smallest number of transfers needed to travel between
two airports
○ Connection = 0: direct flight (without transfer)
○ Connection = 1: with 1 transfer
○ Connection > 1: with >1 transfer
4
A
B
C
D
Lufthansa Open API
● Reference data: Countries, Cities, Airports
● Operations: Flight Schedules
A priori, the data are not limited to Lufthansa flights
5
Structure of data in the API
Example: Berlin-Tegel airport TXL in XML
6
“Airport”,
“RailwayStation” or
"BusStation"
Data model
countries
countryCode
zoneCode
countryName
cities
cityCode
countryCode
cityName
lat
lon
airports
airportCode
airportName
cityCode
countryCode
lat
lon
flights
origin
des
httpcode
date
7
primary key
foreign key
Methodology
3 MOOCs on Coursera (University of Michigan)
- “Python Data Structures”
- “Using Python to Access Web Data”
- “Using Databases with Python”
2 books on Python:
- “Thinking Python” - Allen B. Downey
- “Python For everybody” - Charles Severance
8
Methodology
Charles Severance “Python for everybody”, Chap.16
9
Methodology
Charles Severance “Python for everybody”, Chap.16
10
How to GET data
Step 1: Acquire all reference data on Countries, Cities and
Airports...
Problem: 1,261 airports in total
→ get all records in several loops by altering the value of offset
number of records returned
Maximum is 100!
11
How to GET data (2)
Step 2: Information on all flights between European airports
over a week (2017/01/20-2017/01/26)
Obtain a list of European airports by SQL
→ 2 loops to create all possible pairs
220 x 220 = 48400 pairs = 3 h of execution per day!
12
need to always include origin, destination and date in request
Authorisation : OAuth 2
Token acquisition before requests can be sent
13
Rate Limit
● 5 request / seconde
● 1,000 → 10,000 requests / hour
● Decorator “RateLimited”
Error is thrown when
limits are exceeded
14
Inserting data into our database
import sqlite3
→CREATE TABLE if not exists,
INSERT INTO ____ VALUES...
15
Analysis and visualisations
16
The most important airports around the world,
According to Lufthansa
17
European hubs of LH
18
LH flights in Europe
19
Data analysis in SQL
- 5 airports as origine with the greatest number of direct
connections
- Data over a week
- Net flights per day
- Frequency by week
- 5 hubs based on Lufthansa BD
20
Data analysis in SQL (2)
- 5 airports as destination with the greatest number of direct
connections
21
Data analysis in SQL (3)
- Airports in France as origin in Lufthansa DB
22
Data analysis in SQL (4)
- 5 airports as origin with least direct connections
23
Data analysis in SQL (5)
- Connections of 5 hubs as origin in Lufthansa DB
24
Airport Connection = 0 Connection = 1 Connections > 1
Frankfurt (FRA) 91 105 24
Munich (MUC) 92 103 25
Vienna (VIE) 58 132 30
Zurich (ZRH) 51 132 37
Brussel (BRU) 48 117 55
Data analysis in SQL (6)
Airports with Connections(= 1) from Frankfurt, sorted by country
25
Visualisation: Force-directed graph in D3.js
● Physical model: forces of attraction and repulsion
● Algorithm defined in D3.js (JavaScript), a popular
package for data visualisation
Drawings obtained with force-directed
algorithms
Source:
https://cs.brown.edu/~rt/gdhandbook/chapters/fo
rce-directed.pdf
26
Force-directed graph (1)
27
Force-directed graph (2)
Node central : Francfort
28
Tree
29
Limitations and perspectives
- Limitations
- Quality of data
- Exclusivity of data
- Perspectives
- A map that shows the frequency of service between airports
- Country profile: domestic VS local flights
- Airlines: legacy VS budget
30
Thank you!
31

More Related Content

What's hot

Graph of UK train stations
Graph of UK train stationsGraph of UK train stations
Graph of UK train stationsDaniyar Mukhanov
 
educ1751 - analysis of a technology mediated enquiry
educ1751 - analysis of a technology mediated enquiryeduc1751 - analysis of a technology mediated enquiry
educ1751 - analysis of a technology mediated enquirydebbie evans
 
Apache flink: data streaming as a basis for all analytics by Kostas Tzoumas a...
Apache flink: data streaming as a basis for all analytics by Kostas Tzoumas a...Apache flink: data streaming as a basis for all analytics by Kostas Tzoumas a...
Apache flink: data streaming as a basis for all analytics by Kostas Tzoumas a...Big Data Spain
 
Php date & time functions
Php date & time functionsPhp date & time functions
Php date & time functionsProgrammer Blog
 
Nosh slides mongodb web application - mongo philly 2011
Nosh slides   mongodb web application - mongo philly 2011Nosh slides   mongodb web application - mongo philly 2011
Nosh slides mongodb web application - mongo philly 2011MongoDB
 
Three Functional Programming Technologies for Big Data
Three Functional Programming Technologies for Big DataThree Functional Programming Technologies for Big Data
Three Functional Programming Technologies for Big DataDynamical Software, Inc.
 
構文や語彙意味論の分析成果をプログラムとして具現化する言語 パターンマッチAPIの可能性
構文や語彙意味論の分析成果をプログラムとして具現化する言語パターンマッチAPIの可能性構文や語彙意味論の分析成果をプログラムとして具現化する言語パターンマッチAPIの可能性
構文や語彙意味論の分析成果をプログラムとして具現化する言語 パターンマッチAPIの可能性kktctk
 
Functional Approach to Software Engineering
Functional Approach to Software EngineeringFunctional Approach to Software Engineering
Functional Approach to Software EngineeringPasindu Perera
 
Fantastic caches and where to find them
Fantastic caches and where to find themFantastic caches and where to find them
Fantastic caches and where to find themAlexey Tokar
 
Using line based voronoi in arc gis
Using line based voronoi in arc gisUsing line based voronoi in arc gis
Using line based voronoi in arc gisFabien Ancelin
 
Data processing for digital libraries: the experience of the BnF with Europea...
Data processing for digital libraries: the experience of the BnF with Europea...Data processing for digital libraries: the experience of the BnF with Europea...
Data processing for digital libraries: the experience of the BnF with Europea...Europeana_Sounds
 
MathML: onde estamos?
MathML: onde estamos?MathML: onde estamos?
MathML: onde estamos?Igalia
 

What's hot (16)

Graph of UK train stations
Graph of UK train stationsGraph of UK train stations
Graph of UK train stations
 
What happened?
What happened?What happened?
What happened?
 
educ1751 - analysis of a technology mediated enquiry
educ1751 - analysis of a technology mediated enquiryeduc1751 - analysis of a technology mediated enquiry
educ1751 - analysis of a technology mediated enquiry
 
Apache flink: data streaming as a basis for all analytics by Kostas Tzoumas a...
Apache flink: data streaming as a basis for all analytics by Kostas Tzoumas a...Apache flink: data streaming as a basis for all analytics by Kostas Tzoumas a...
Apache flink: data streaming as a basis for all analytics by Kostas Tzoumas a...
 
Php date & time functions
Php date & time functionsPhp date & time functions
Php date & time functions
 
Lexical
LexicalLexical
Lexical
 
Nosh slides mongodb web application - mongo philly 2011
Nosh slides   mongodb web application - mongo philly 2011Nosh slides   mongodb web application - mongo philly 2011
Nosh slides mongodb web application - mongo philly 2011
 
Three Functional Programming Technologies for Big Data
Three Functional Programming Technologies for Big DataThree Functional Programming Technologies for Big Data
Three Functional Programming Technologies for Big Data
 
構文や語彙意味論の分析成果をプログラムとして具現化する言語 パターンマッチAPIの可能性
構文や語彙意味論の分析成果をプログラムとして具現化する言語パターンマッチAPIの可能性構文や語彙意味論の分析成果をプログラムとして具現化する言語パターンマッチAPIの可能性
構文や語彙意味論の分析成果をプログラムとして具現化する言語 パターンマッチAPIの可能性
 
Functional Approach to Software Engineering
Functional Approach to Software EngineeringFunctional Approach to Software Engineering
Functional Approach to Software Engineering
 
Fantastic caches and where to find them
Fantastic caches and where to find themFantastic caches and where to find them
Fantastic caches and where to find them
 
Team3 presentation
Team3 presentationTeam3 presentation
Team3 presentation
 
Using line based voronoi in arc gis
Using line based voronoi in arc gisUsing line based voronoi in arc gis
Using line based voronoi in arc gis
 
Data processing for digital libraries: the experience of the BnF with Europea...
Data processing for digital libraries: the experience of the BnF with Europea...Data processing for digital libraries: the experience of the BnF with Europea...
Data processing for digital libraries: the experience of the BnF with Europea...
 
MathML: onde estamos?
MathML: onde estamos?MathML: onde estamos?
MathML: onde estamos?
 
program on Function overloading in java
program on  Function overloading in javaprogram on  Function overloading in java
program on Function overloading in java
 

Viewers also liked

Lufthansa Case Study to provide social experience for users
Lufthansa Case Study to provide social experience for usersLufthansa Case Study to provide social experience for users
Lufthansa Case Study to provide social experience for usersAshwin Gopal Krishna Setty
 
Lufthansa Reference Architecture for the OpenGroup
Lufthansa Reference Architecture for the OpenGroupLufthansa Reference Architecture for the OpenGroup
Lufthansa Reference Architecture for the OpenGroupCapgemini
 
Self Confidence Presentation for BBA students
Self Confidence Presentation for BBA studentsSelf Confidence Presentation for BBA students
Self Confidence Presentation for BBA studentsBilal Khan
 
Case Study on Lufthansa:: ´´Taking Mobile Computing to the Skies While Keepin...
Case Study on Lufthansa:: ´´Taking Mobile Computing to the Skies While Keepin...Case Study on Lufthansa:: ´´Taking Mobile Computing to the Skies While Keepin...
Case Study on Lufthansa:: ´´Taking Mobile Computing to the Skies While Keepin...bit0226
 
Lufthansa Case Study
Lufthansa Case StudyLufthansa Case Study
Lufthansa Case StudyDonnych Diaz
 
Lufthansa Mobile Evaluation
Lufthansa Mobile EvaluationLufthansa Mobile Evaluation
Lufthansa Mobile EvaluationKC Dochtermann
 
Business consulting lufthansa - final presentation
Business consulting   lufthansa - final presentationBusiness consulting   lufthansa - final presentation
Business consulting lufthansa - final presentationJason Liew 廖颂成
 
Case Study Lufthansa
Case Study LufthansaCase Study Lufthansa
Case Study Lufthansaamarchetto
 
Lufthansa Presentation
Lufthansa PresentationLufthansa Presentation
Lufthansa PresentationSusana Perez
 
[TechTalks] Effects of UI/ UX Designs on Customer Satisfaction & Loyalty
[TechTalks] Effects of UI/ UX Designs on Customer Satisfaction & Loyalty[TechTalks] Effects of UI/ UX Designs on Customer Satisfaction & Loyalty
[TechTalks] Effects of UI/ UX Designs on Customer Satisfaction & LoyaltyBlazeclan Technologies Private Limited
 
Lufthansa strategy analysis
Lufthansa  strategy analysisLufthansa  strategy analysis
Lufthansa strategy analysisbruno nelzy
 
Strategic planning powerpoint
Strategic planning powerpointStrategic planning powerpoint
Strategic planning powerpointrobdude9626
 

Viewers also liked (13)

Lufthansa Case Study to provide social experience for users
Lufthansa Case Study to provide social experience for usersLufthansa Case Study to provide social experience for users
Lufthansa Case Study to provide social experience for users
 
Lufthansa Reference Architecture for the OpenGroup
Lufthansa Reference Architecture for the OpenGroupLufthansa Reference Architecture for the OpenGroup
Lufthansa Reference Architecture for the OpenGroup
 
Self Confidence Presentation for BBA students
Self Confidence Presentation for BBA studentsSelf Confidence Presentation for BBA students
Self Confidence Presentation for BBA students
 
Lufthansa
LufthansaLufthansa
Lufthansa
 
Case Study on Lufthansa:: ´´Taking Mobile Computing to the Skies While Keepin...
Case Study on Lufthansa:: ´´Taking Mobile Computing to the Skies While Keepin...Case Study on Lufthansa:: ´´Taking Mobile Computing to the Skies While Keepin...
Case Study on Lufthansa:: ´´Taking Mobile Computing to the Skies While Keepin...
 
Lufthansa Case Study
Lufthansa Case StudyLufthansa Case Study
Lufthansa Case Study
 
Lufthansa Mobile Evaluation
Lufthansa Mobile EvaluationLufthansa Mobile Evaluation
Lufthansa Mobile Evaluation
 
Business consulting lufthansa - final presentation
Business consulting   lufthansa - final presentationBusiness consulting   lufthansa - final presentation
Business consulting lufthansa - final presentation
 
Case Study Lufthansa
Case Study LufthansaCase Study Lufthansa
Case Study Lufthansa
 
Lufthansa Presentation
Lufthansa PresentationLufthansa Presentation
Lufthansa Presentation
 
[TechTalks] Effects of UI/ UX Designs on Customer Satisfaction & Loyalty
[TechTalks] Effects of UI/ UX Designs on Customer Satisfaction & Loyalty[TechTalks] Effects of UI/ UX Designs on Customer Satisfaction & Loyalty
[TechTalks] Effects of UI/ UX Designs on Customer Satisfaction & Loyalty
 
Lufthansa strategy analysis
Lufthansa  strategy analysisLufthansa  strategy analysis
Lufthansa strategy analysis
 
Strategic planning powerpoint
Strategic planning powerpointStrategic planning powerpoint
Strategic planning powerpoint
 

Similar to Connected hubs: an analysis of the Lufthansa network in Europe

COE332-Ch03d.pptx
COE332-Ch03d.pptxCOE332-Ch03d.pptx
COE332-Ch03d.pptxMemMem25
 
temp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdf
temp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdftemp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdf
temp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdfBhureVedika
 
maXbox Starter 40 REST API Coding
maXbox Starter 40 REST API CodingmaXbox Starter 40 REST API Coding
maXbox Starter 40 REST API CodingMax Kleiner
 
Chapter 3 - Transport Layer for VN Students
Chapter 3 - Transport Layer for VN StudentsChapter 3 - Transport Layer for VN Students
Chapter 3 - Transport Layer for VN Studentsalberttochiro
 
Discriminators for use in flow-based classification
Discriminators for use in flow-based classificationDiscriminators for use in flow-based classification
Discriminators for use in flow-based classificationDenis Zuev
 
EDF2014: Talk of Axel Polleres, Full Professor, WU - Vienna University of Eco...
EDF2014: Talk of Axel Polleres, Full Professor, WU - Vienna University of Eco...EDF2014: Talk of Axel Polleres, Full Professor, WU - Vienna University of Eco...
EDF2014: Talk of Axel Polleres, Full Professor, WU - Vienna University of Eco...European Data Forum
 
the transport layer
the transport layerthe transport layer
the transport layertumetr1
 
Register transfer and microoperations
Register transfer and microoperationsRegister transfer and microoperations
Register transfer and microoperationsmahesh kumar prajapat
 
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols
5-LEC- 5.pptxTransport Layer. Transport Layer ProtocolsZahouAmel1
 
Transport layer (computer networks)
Transport layer (computer networks)Transport layer (computer networks)
Transport layer (computer networks)Fatbardh Hysa
 
Delivering Application-Layer​ Traffic Optimization​ (ALTO) Services based on ...
Delivering Application-Layer​ Traffic Optimization​ (ALTO) Services based on ...Delivering Application-Layer​ Traffic Optimization​ (ALTO) Services based on ...
Delivering Application-Layer​ Traffic Optimization​ (ALTO) Services based on ...Danny Alex Lachos Perez
 

Similar to Connected hubs: an analysis of the Lufthansa network in Europe (20)

COE332-Ch03d.pptx
COE332-Ch03d.pptxCOE332-Ch03d.pptx
COE332-Ch03d.pptx
 
temp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdf
temp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdftemp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdf
temp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdf
 
maXbox Starter 40 REST API Coding
maXbox Starter 40 REST API CodingmaXbox Starter 40 REST API Coding
maXbox Starter 40 REST API Coding
 
Osi model
Osi modelOsi model
Osi model
 
Week4 lec1-bscs1
Week4 lec1-bscs1Week4 lec1-bscs1
Week4 lec1-bscs1
 
Chapter 3 - Transport Layer for VN Students
Chapter 3 - Transport Layer for VN StudentsChapter 3 - Transport Layer for VN Students
Chapter 3 - Transport Layer for VN Students
 
Discriminators for use in flow-based classification
Discriminators for use in flow-based classificationDiscriminators for use in flow-based classification
Discriminators for use in flow-based classification
 
EDF2014: Talk of Axel Polleres, Full Professor, WU - Vienna University of Eco...
EDF2014: Talk of Axel Polleres, Full Professor, WU - Vienna University of Eco...EDF2014: Talk of Axel Polleres, Full Professor, WU - Vienna University of Eco...
EDF2014: Talk of Axel Polleres, Full Professor, WU - Vienna University of Eco...
 
the transport layer
the transport layerthe transport layer
the transport layer
 
Register transfer and microoperations
Register transfer and microoperationsRegister transfer and microoperations
Register transfer and microoperations
 
Chapter_3_V6.01.ppt
Chapter_3_V6.01.pptChapter_3_V6.01.ppt
Chapter_3_V6.01.ppt
 
Chapter3 transport
Chapter3 transportChapter3 transport
Chapter3 transport
 
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
 
Linux capacity planning
Linux capacity planningLinux capacity planning
Linux capacity planning
 
Huelva07 Ws2 Drea
Huelva07 Ws2 DreaHuelva07 Ws2 Drea
Huelva07 Ws2 Drea
 
Transport layer (computer networks)
Transport layer (computer networks)Transport layer (computer networks)
Transport layer (computer networks)
 
Chapter4.ppt
Chapter4.pptChapter4.ppt
Chapter4.ppt
 
Chapter 3 v6.01
Chapter 3 v6.01Chapter 3 v6.01
Chapter 3 v6.01
 
Micro operations
Micro operationsMicro operations
Micro operations
 
Delivering Application-Layer​ Traffic Optimization​ (ALTO) Services based on ...
Delivering Application-Layer​ Traffic Optimization​ (ALTO) Services based on ...Delivering Application-Layer​ Traffic Optimization​ (ALTO) Services based on ...
Delivering Application-Layer​ Traffic Optimization​ (ALTO) Services based on ...
 

Recently uploaded

办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...Boston Institute of Analytics
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAbdelrhman abooda
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Colleen Farrelly
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.natarajan8993
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改yuu sss
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degreeyuu sss
 
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptxNLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptxBoston Institute of Analytics
 

Recently uploaded (20)

办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
 
Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024Generative AI for Social Good at Open Data Science East 2024
Generative AI for Social Good at Open Data Science East 2024
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.RABBIT: A CLI tool for identifying bots based on their GitHub events.
RABBIT: A CLI tool for identifying bots based on their GitHub events.
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
办美国阿肯色大学小石城分校毕业证成绩单pdf电子版制作修改#真实留信入库#永久存档#真实可查#diploma#degree
 
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptxNLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
NLP Project PPT: Flipkart Product Reviews through NLP Data Science.pptx
 

Connected hubs: an analysis of the Lufthansa network in Europe

  • 1. Connected Hubs 1 February 2017 CHAN Sau Yee & WANG Xi
  • 2. Plan ● Objective ● Lufthansa Open API ● Methodology ● Data analysis ● Data visualisation 2
  • 3. Objective ● To produce a map that shows the location of airports in Europe and the direct flights in-between ○ What we need... ■ list of European airports ■ direct flights between any two airports ● To analyse the importance of airports based on the number of connections needed ○ What we need... ■ list of European airports ■ number of direct flights for each airport ■ rank of airports by number of destinations 3
  • 4. Definitions ● Case study in Europe (defined as EU28 including Britain, plus Switzerland and Norway) ● Connection: the smallest number of transfers needed to travel between two airports ○ Connection = 0: direct flight (without transfer) ○ Connection = 1: with 1 transfer ○ Connection > 1: with >1 transfer 4 A B C D
  • 5. Lufthansa Open API ● Reference data: Countries, Cities, Airports ● Operations: Flight Schedules A priori, the data are not limited to Lufthansa flights 5
  • 6. Structure of data in the API Example: Berlin-Tegel airport TXL in XML 6 “Airport”, “RailwayStation” or "BusStation"
  • 8. Methodology 3 MOOCs on Coursera (University of Michigan) - “Python Data Structures” - “Using Python to Access Web Data” - “Using Databases with Python” 2 books on Python: - “Thinking Python” - Allen B. Downey - “Python For everybody” - Charles Severance 8
  • 9. Methodology Charles Severance “Python for everybody”, Chap.16 9
  • 10. Methodology Charles Severance “Python for everybody”, Chap.16 10
  • 11. How to GET data Step 1: Acquire all reference data on Countries, Cities and Airports... Problem: 1,261 airports in total → get all records in several loops by altering the value of offset number of records returned Maximum is 100! 11
  • 12. How to GET data (2) Step 2: Information on all flights between European airports over a week (2017/01/20-2017/01/26) Obtain a list of European airports by SQL → 2 loops to create all possible pairs 220 x 220 = 48400 pairs = 3 h of execution per day! 12 need to always include origin, destination and date in request
  • 13. Authorisation : OAuth 2 Token acquisition before requests can be sent 13
  • 14. Rate Limit ● 5 request / seconde ● 1,000 → 10,000 requests / hour ● Decorator “RateLimited” Error is thrown when limits are exceeded 14
  • 15. Inserting data into our database import sqlite3 →CREATE TABLE if not exists, INSERT INTO ____ VALUES... 15
  • 17. The most important airports around the world, According to Lufthansa 17
  • 19. LH flights in Europe 19
  • 20. Data analysis in SQL - 5 airports as origine with the greatest number of direct connections - Data over a week - Net flights per day - Frequency by week - 5 hubs based on Lufthansa BD 20
  • 21. Data analysis in SQL (2) - 5 airports as destination with the greatest number of direct connections 21
  • 22. Data analysis in SQL (3) - Airports in France as origin in Lufthansa DB 22
  • 23. Data analysis in SQL (4) - 5 airports as origin with least direct connections 23
  • 24. Data analysis in SQL (5) - Connections of 5 hubs as origin in Lufthansa DB 24 Airport Connection = 0 Connection = 1 Connections > 1 Frankfurt (FRA) 91 105 24 Munich (MUC) 92 103 25 Vienna (VIE) 58 132 30 Zurich (ZRH) 51 132 37 Brussel (BRU) 48 117 55
  • 25. Data analysis in SQL (6) Airports with Connections(= 1) from Frankfurt, sorted by country 25
  • 26. Visualisation: Force-directed graph in D3.js ● Physical model: forces of attraction and repulsion ● Algorithm defined in D3.js (JavaScript), a popular package for data visualisation Drawings obtained with force-directed algorithms Source: https://cs.brown.edu/~rt/gdhandbook/chapters/fo rce-directed.pdf 26
  • 28. Force-directed graph (2) Node central : Francfort 28
  • 30. Limitations and perspectives - Limitations - Quality of data - Exclusivity of data - Perspectives - A map that shows the frequency of service between airports - Country profile: domestic VS local flights - Airlines: legacy VS budget 30