|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "markdown", |
| 5 | + "metadata": {}, |
| 6 | + "source": [ |
| 7 | + "# Flights Data Exploration Challenge\n", |
| 8 | + "\n", |
| 9 | + "In this challge, you'll explore a real-world dataset containing flights data from the US Department of Transportation.\n", |
| 10 | + "\n", |
| 11 | + "Let's start by loading and viewing the data." |
| 12 | + ] |
| 13 | + }, |
| 14 | + { |
| 15 | + "cell_type": "code", |
| 16 | + "execution_count": null, |
| 17 | + "metadata": {}, |
| 18 | + "outputs": [], |
| 19 | + "source": [ |
| 20 | + "import pandas as pd\n", |
| 21 | + "\n", |
| 22 | + "df_flights = pd.read_csv('data/flights.csv')\n", |
| 23 | + "df_flights.head()" |
| 24 | + ] |
| 25 | + }, |
| 26 | + { |
| 27 | + "cell_type": "markdown", |
| 28 | + "metadata": {}, |
| 29 | + "source": [ |
| 30 | + "The dataset contains observations of US domestic flights in 2013, and consists of the following fields:\n", |
| 31 | + "\n", |
| 32 | + "- **Year**: The year of the flight (all records are from 2013)\n", |
| 33 | + "- **Month**: The month of the flight\n", |
| 34 | + "- **DayofMonth**: The day of the month on which the flight departed\n", |
| 35 | + "- **DayOfWeek**: The day of the week on which the flight departed - from 1 (Monday) to 7 (Sunday)\n", |
| 36 | + "- **Carrier**: The two-letter abbreviation for the airline.\n", |
| 37 | + "- **OriginAirportID**: A unique numeric identifier for the departure aiport\n", |
| 38 | + "- **OriginAirportName**: The full name of the departure airport\n", |
| 39 | + "- **OriginCity**: The departure airport city\n", |
| 40 | + "- **OriginState**: The departure airport state\n", |
| 41 | + "- **DestAirportID**: A unique numeric identifier for the destination aiport\n", |
| 42 | + "- **DestAirportName**: The full name of the destination airport\n", |
| 43 | + "- **DestCity**: The destination airport city\n", |
| 44 | + "- **DestState**: The destination airport state\n", |
| 45 | + "- **CRSDepTime**: The scheduled departure time\n", |
| 46 | + "- **DepDelay**: The number of minutes departure was delayed (flight that left ahead of schedule have a negative value)\n", |
| 47 | + "- **DelDelay15**: A binary indicator that departure was delayed by more than 15 minutes (and therefore considered \"late\")\n", |
| 48 | + "- **CRSArrTime**: The scheduled arrival time\n", |
| 49 | + "- **ArrDelay**: The number of minutes arrival was delayed (flight that arrived ahead of schedule have a negative value)\n", |
| 50 | + "- **ArrDelay15**: A binary indicator that arrival was delayed by more than 15 minutes (and therefore considered \"late\")\n", |
| 51 | + "- **Cancelled**: A binary indicator that the flight was cancelled\n", |
| 52 | + "\n", |
| 53 | + "Your challenge is to explore the flight data to analyze possible factors that affect delays in departure or arrival of a flight.\n", |
| 54 | + "\n", |
| 55 | + "1. Start by cleaning the data.\n", |
| 56 | + " - Identify any null or missing data, and impute appropriate replacement values.\n", |
| 57 | + " - Identify and eliminate any outliers in the **DepDelay** and **ArrDelay** columns.\n", |
| 58 | + "2. Explore the cleaned data.\n", |
| 59 | + " - View summary statistics for the numeric fields in the dataset.\n", |
| 60 | + " - Determine the distribution of the **DepDelay** and **ArrDelay** columns.\n", |
| 61 | + " - Use statistics, aggregate functions, and visualizations to answer the following questions:\n", |
| 62 | + " - *What are the average (mean) departure and arrival delays?*\n", |
| 63 | + " - *How do the carriers compare in terms of arrival delay performance?*\n", |
| 64 | + " - *Is there a noticable difference in arrival delays for different days of the week?*\n", |
| 65 | + " - *Which departure airport has the highest average departure delay?*\n", |
| 66 | + " - *Do **late** departures tend to result in longer arrival delays than on-time departures?*\n", |
| 67 | + " - *Which route (from origin airport to destination airport) has the most **late** arrivals?*\n", |
| 68 | + " - *Which route has the highest average arrival delay?*\n", |
| 69 | + " \n", |
| 70 | + "Add markdown and code cells as required to create your solution.\n", |
| 71 | + "\n", |
| 72 | + "> **Note**: There is no single \"correct\" solution. A sample solution is provided in [01 - Flights Challenge.ipynb](01%20-%20Flights%20Solution.ipynb)." |
| 73 | + ] |
| 74 | + }, |
| 75 | + { |
| 76 | + "cell_type": "code", |
| 77 | + "execution_count": null, |
| 78 | + "metadata": {}, |
| 79 | + "outputs": [], |
| 80 | + "source": [ |
| 81 | + "# Your code to explore the data" |
| 82 | + ] |
| 83 | + } |
| 84 | + ], |
| 85 | + "metadata": { |
| 86 | + "kernelspec": { |
| 87 | + "display_name": "Python 3.6 - AzureML", |
| 88 | + "language": "python", |
| 89 | + "name": "python3-azureml" |
| 90 | + }, |
| 91 | + "language_info": { |
| 92 | + "codemirror_mode": { |
| 93 | + "name": "ipython", |
| 94 | + "version": 3 |
| 95 | + }, |
| 96 | + "file_extension": ".py", |
| 97 | + "mimetype": "text/x-python", |
| 98 | + "name": "python", |
| 99 | + "nbconvert_exporter": "python", |
| 100 | + "pygments_lexer": "ipython3", |
| 101 | + "version": "3.6.9" |
| 102 | + } |
| 103 | + }, |
| 104 | + "nbformat": 4, |
| 105 | + "nbformat_minor": 4 |
| 106 | +} |
0 commit comments