Download pages/2_Data_Understanding.py from Srikanth0804/Flight_Price_Prediction: direct link, hf CLI and curl.
- Browser
- Download file 1.21 kB
-
https://huggingface.co/spaces/Srikanth0804/Flight_Price_Prediction/resolve/main/pages/2_Data_Understanding.py
- Command line
-
hf download hf://spaces/Srikanth0804/Flight_Price_Prediction/pages/2_Data_Understanding.py
-
curl -L -o 2_Data_Understanding.py https://huggingface.co/spaces/Srikanth0804/Flight_Price_Prediction/resolve/main/pages/2_Data_Understanding.py
1.21 kB
| import streamlit as st | |
| st.title("π Data Collection & Data Understanding") | |
| st.markdown(""" | |
| ## π₯ Data Collection: | |
| The dataset used in this project was collected from an online source containing historical flight price data for various airlines. | |
| ### Dataset Features: | |
| - **Airline:** Name of the airline company. | |
| - **Source City:** The departure city. | |
| - **Departure Time:** Scheduled time of departure. | |
| - **Stops:** Number of stops in the flight. | |
| - **Arrival Time:** Scheduled arrival time. | |
| - **Destination City:** The destination city. | |
| - **Class:** Class of the flight (Economy/Business). | |
| - **Duration:** Total travel duration (in hours). | |
| - **Days Left:** Number of days between the booking date and the flight date. | |
| - **Price:** Target variable β flight ticket price. | |
| --- | |
| ## π Key Understanding: | |
| - **Data Type:** Mix of categorical and numerical variables. | |
| - **Data Size:** Contains several thousand records. | |
| - **Target Variable:** Flight Ticket Price. | |
| The next step is to explore the dataset through Exploratory Data Analysis (EDA). | |
| """) | |
| if st.button('Next'): | |
| st.switch_page('pages/3_EDA.py') | |
| if st.button('Go to Problem Statement'): | |
| st.switch_page('pages/1_Problem_Statement.py') |