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

Statistics For Management by Richard I. Levin 8ed.pdf
Statistics For Management by Richard I. Levin 8ed.pdfStatistics For Management by Richard I. Levin 8ed.pdf
Statistics For Management by Richard I. Levin 8ed.pdfnikeshsingh56
 
Bank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis ProjectBank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis ProjectBoston Institute of Analytics
 
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis model
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis modelDecoding Movie Sentiments: Analyzing Reviews with Data Analysis model
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis modelBoston Institute of Analytics
 
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfEnglish-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfblazblazml
 
DATA ANALYSIS using various data sets like shoping data set etc
DATA ANALYSIS using various data sets like shoping data set etcDATA ANALYSIS using various data sets like shoping data set etc
DATA ANALYSIS using various data sets like shoping data set etclalithasri22
 
Digital Indonesia Report 2024 by We Are Social .pdf
Digital Indonesia Report 2024 by We Are Social .pdfDigital Indonesia Report 2024 by We Are Social .pdf
Digital Indonesia Report 2024 by We Are Social .pdfNicoChristianSunaryo
 
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...Boston Institute of Analytics
 
IBEF report on the Insurance market in India
IBEF report on the Insurance market in IndiaIBEF report on the Insurance market in India
IBEF report on the Insurance market in IndiaManalVerma4
 
Presentation of project of business person who are success
Presentation of project of business person who are successPresentation of project of business person who are success
Presentation of project of business person who are successPratikSingh115843
 
why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...
why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...
why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...Jack Cole
 
Role of Consumer Insights in business transformation
Role of Consumer Insights in business transformationRole of Consumer Insights in business transformation
Role of Consumer Insights in business transformationAnnie Melnic
 
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...Dr Arash Najmaei ( Phd., MBA, BSc)
 
Non Text Magic Studio Magic Design for Presentations L&P.pdf
Non Text Magic Studio Magic Design for Presentations L&P.pdfNon Text Magic Studio Magic Design for Presentations L&P.pdf
Non Text Magic Studio Magic Design for Presentations L&P.pdfPratikPatil591646
 
Digital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksDigital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksdeepakthakur548787
 

Recently uploaded (17)

Insurance Churn Prediction Data Analysis Project
Insurance Churn Prediction Data Analysis ProjectInsurance Churn Prediction Data Analysis Project
Insurance Churn Prediction Data Analysis Project
 
Statistics For Management by Richard I. Levin 8ed.pdf
Statistics For Management by Richard I. Levin 8ed.pdfStatistics For Management by Richard I. Levin 8ed.pdf
Statistics For Management by Richard I. Levin 8ed.pdf
 
Bank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis ProjectBank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis Project
 
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis model
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis modelDecoding Movie Sentiments: Analyzing Reviews with Data Analysis model
Decoding Movie Sentiments: Analyzing Reviews with Data Analysis model
 
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdfEnglish-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
English-8-Q4-W3-Synthesizing-Essential-Information-From-Various-Sources-1.pdf
 
DATA ANALYSIS using various data sets like shoping data set etc
DATA ANALYSIS using various data sets like shoping data set etcDATA ANALYSIS using various data sets like shoping data set etc
DATA ANALYSIS using various data sets like shoping data set etc
 
Digital Indonesia Report 2024 by We Are Social .pdf
Digital Indonesia Report 2024 by We Are Social .pdfDigital Indonesia Report 2024 by We Are Social .pdf
Digital Indonesia Report 2024 by We Are Social .pdf
 
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
Data Analysis Project Presentation: Unveiling Your Ideal Customer, Bank Custo...
 
IBEF report on the Insurance market in India
IBEF report on the Insurance market in IndiaIBEF report on the Insurance market in India
IBEF report on the Insurance market in India
 
Presentation of project of business person who are success
Presentation of project of business person who are successPresentation of project of business person who are success
Presentation of project of business person who are success
 
Data Analysis Project: Stroke Prediction
Data Analysis Project: Stroke PredictionData Analysis Project: Stroke Prediction
Data Analysis Project: Stroke Prediction
 
why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...
why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...
why-transparency-and-traceability-are-essential-for-sustainable-supply-chains...
 
2023 Survey Shows Dip in High School E-Cigarette Use
2023 Survey Shows Dip in High School E-Cigarette Use2023 Survey Shows Dip in High School E-Cigarette Use
2023 Survey Shows Dip in High School E-Cigarette Use
 
Role of Consumer Insights in business transformation
Role of Consumer Insights in business transformationRole of Consumer Insights in business transformation
Role of Consumer Insights in business transformation
 
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
 
Non Text Magic Studio Magic Design for Presentations L&P.pdf
Non Text Magic Studio Magic Design for Presentations L&P.pdfNon Text Magic Studio Magic Design for Presentations L&P.pdf
Non Text Magic Studio Magic Design for Presentations L&P.pdf
 
Digital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing worksDigital Marketing Plan, how digital marketing works
Digital Marketing Plan, how digital marketing works
 

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