Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pegah-ardehkhani/flight-price-eda-and-prediction

Analyze and Predict the Flight Price Using Machine Learning Models and Plotly Library
https://github.com/pegah-ardehkhani/flight-price-eda-and-prediction

data-science data-visualization exploratory-data-analysis feature-importance flight-price flight-price-prediction machine-learning machine-learning-algorithms plotly prediction regression regression-algorithms statsmodels

Last synced: 19 days ago
JSON representation

Analyze and Predict the Flight Price Using Machine Learning Models and Plotly Library

Awesome Lists containing this project

README

        

# Flight Price EDA and Prediction ✈ ![license](https://img.shields.io/github/license/Pegah-Ardehkhani/Flight-Price-EDA-and-Prediction.svg) Open In Colab

> **`Note`**: Use [**google colab**](https://colab.research.google.com/drive/1cOAoQaJ-GNLSvTc6i5WU6WbrVWX-eXDT?usp=sharing) in order to view the code and interactive plotly graphs.



## Dataset 📔

[Kaggle link: Flight Price Data](https://www.kaggle.com/datasets/shubhambathwal/flight-price-prediction)

## Objectives 🏆

In this project, these questions will be answered:

* [x] Does price vary with Airlines?
* [x] How is the price affected when tickets are bought in just 1 or 2 days before departure?
* [x] Does ticket price change based on the departure time and arrival time?
* [x] How the price changes with change in Source and Destination?
* [x] How does the ticket price vary between Economy and Business class?
* [x] Which features have the most impact on predicting flight price?
* [x] Which model is the best for predicting flight price?

## Project's Table of Contents ✍️

Click to expand!

1. Problem statement
2. Import Libraries and Data
3. Handling Missing Values
4. Data Analysis and Visualization
5. Outlier Detection
6. Check for Rare Categories
7. Categorical Variables Encoding
8. Dataset Splitting
9. Modeling and Parameter Optimization
10. Feature Importance
11. Results

## Project Overview 💼

Sample Visualization:





Model Evaluation: