- Introduction
- Dependencies
- Data Loading and Preprocessing
- Data Visualization
The COVID-19 pandemic has significantly affected the aviation industry, leading to a drastic reduction in air travel. This project aims to explore and visualize the impact on airport traffic using Python and Plotly.
To run the code in this repository, you will need the following Python packages:
- numpy
- pandas
- plotly.graph_objects
- plotly.offline
- plotly.express
The dataset is loaded using pandas from the 'covid_impact_on_airport_traffic.csv' file. We perform data preprocessing steps such as handling null values, parsing dates, and adjusting column names for better analysis.
The repository includes various interactive visualizations created using Plotly. These visualizations include bar charts, histograms, pie charts, and scatter plots, providing insights into the daily records by weekday, monthly records, percent of baseline operation, airport record distribution, records by country, and geographic locations of airports.
monthly_bar
: Bar chart displaying the total number of daily records by month.
hist
: Histogram showing the distribution of operation records running at a percentage of their pre-COVID baseline.
airport_scatter
: Scatter plot depicting the operation record distribution by the airport.
country_piechart
: Pie chart representing flight records by country.
scatter_baseline
: Interactive scatter_geo plot with cross markers representing airports reporting operating activity during the ongoing COVID-19 pandemic.
Presently, based on the analysis conducted in this notebook, the following conclusions have been drawn:
- Tuesday and Wednesday emerged as the busiest weekdays, each recording a substantial 10,641,064 operations.
- Conversely, Sunday exhibited the lowest activity with only 994,994 records.
Additionally, it was observed that the month of December had the least activity, with a mere 5,656 records.
Furthermore, a comparative analysis of record counts between countries revealed that the United States significantly surpassed all others, boasting a remarkable 44,414,441 records, nearly doubling the second-highest record count held by Canada, which stood at 23,112,311.
Upon considering the dataset's distribution and visualizing the active airports on a map projection, the evidence suggests that the containment measures implemented by the United States during the COVID-19 pandemic did not involve substantial restrictions on airport travel.
Please note that the code provided here is for demonstration purposes, and the dataset used may have been subject to updates or changes. Feel free to customize the visualizations and analysis to explore different aspects of airport traffic during the COVID-19 pandemic.
For any queries or further discussions, please contact misbahnoor2017@gmail.com.