This project performs data analysis on a Airline dataset to solve the challenges like stricter environmental regulations , higher flight taxes, increased interest rates,rising fuel prices etc.
- Project Overview
- Business Problem
- Dataset
- Tools & Technologies
- Project Structure
- Data Cleaning & Preparation
- Research Questions & Key Findings
- Dashboard
- How to Run This Project
- Final Recommendations
The goal of this data analysis project using SQL , Python would be to identify opportunities to increase the occupancy rate on low-performing flights ,which can ulimately lead to increased profitablity for the airline.
A airline company is currently facin a challenges due to several factors such as stricter environmental regulations, higher flight taxes, increased interest rates,rising fuel prices and a tight labor market resulting in increased labor costs. As a result , the company's profitability is under pressure and they are seekin ways to address the issue to tackle this challenges.
-
Source of the dataset : https://www.kaggle.com/datasets/open-flights/airline-database
-
Size, format, and key features/columns : this is a database that contains different table related to airline industries like aircrafts_data,airports_data,boarding_passes,bookings , flights,seats,ticket_flights,tickets.
-
Any preprocessing done before use
- create a DataBase connection using sqlite
- explore the table one by one using pandas function (read_sql_query).
- Python
- Sqlite3
- Numpy
- Pandas
- Matplotlib
- Seaborn
- /travel.sqlite # Huge database, download through the link
- /Airline_Data_analysis.ipynb # Jupyter notebook for EDA and modeling
- /figure/ # Visualizations
- /dashboard/ # Dashboard-related files
- /README.md # Project documentation
- /.gitignore # Avoid tracking virtual environments
Steps taken for:
- Handling missing values : No Null values Found
- Checking Duplicates : No duplicate rows Found.
-
There is 5 Planes that have more than 100 seats.
-
Number of tickets booked and total amount earned over time .

-
Calculate the average charges for each aircraft with different fare condition.

-
Calculate the total revenue per year and the average revenue per ticket.
| aircraft_code | booked_seats | num_seats | occupancy_rate |
|---|---|---|---|
| 319 | 53.583181 | 116 | 0.461924 |
| 321 | 88.809231 | 170 | 0.522407 |
| 733 | 80.255462 | 130 | 0.617350 |
| 763 | 113.937294 | 222 | 0.513231 |
| 773 | 264.925806 | 402 | 0.659019 |
- How Much the total annual turnover could increase by giving all aircrafts a 10 % higher occupancy rate.
| aircraft_code | booked_seats | num_seats | occupancy_rate | inc_occupancy_rate |
|---|---|---|---|---|
| 319 | 53.583181 | 116 | 0.461924 | 0.508116 |
| 321 | 88.809231 | 170 | 0.522407 | 0.574648 |
| 733 | 80.255462 | 130 | 0.617350 | 0.679085 |
| 763 | 113.937294 | 222 | 0.513231 | 0.564554 |
| 773 | 264.925806 | 402 | 0.659019 | 0.724921 |
Instructions for setup:
- Clone the repository (git clone https://github.com/Sachin2095/Airline-SQL-DATASET.git)
- Install dependencies (
pip install -r requirements.txt) - Run Jupyter notebooks or scripts .
- Open dashboard()
- Airlines can find areas for improvement and modify their pricing and route plans as a result of assessing these indicators.
- A greater occupancy rate is one important feature that can enhance profitability since it allows airlines to maximize revenue while minimizing costs associated with vacent seats.
- the airline should revise the price for earch aircraft as the lower price and high price is also the factor that people are not buying tickets from those aircrafts .
- They should decide the rasonable price according to the condition and facility of the aircraft and it should not be very cheap or high.