def plot_throughpupt_by_apiports_and_state_yearly(): """ This function plots the throughput for different airports and states from 2009-2018. :return: """ df_count_list, df_count_by_state_list = data_prepare( constants.TARGET_THROUGHPUT, constants.DIRECTION_ARRIVAL, constants.TIME_YEAR) plot_count.plot_count(df_count_list, df_count_by_state_list, "COUNT", "US Domestic Airline Throughput")
def plot_arr_count_by_airport_and_state_yearly(): """ This function plots the yearly arrival flight count from 2009-2018 for different airports and states """ df_dep_count_list_by_year, df_dep_count_by_state_list_by_year = data_prepare( constants.TARGET_COUNT, constants.DIRECTION_ARRIVAL, constants.TIME_YEAR) plot_count.plot_count(df_dep_count_list_by_year, df_dep_count_by_state_list_by_year, "DEST_COUNT", "US Domestic Airline Arrival Count (DEST)")
def plot_arr_delay_by_airports_and_state_monthly(): """ This function will plot the average monthly arrival delay for airports and states :return: """ df_arr_delay_list_by_month, df_arr_delay_by_state_list_by_month = data_prepare( constants.TARGET_DELAY, constants.DIRECTION_ARRIVAL, constants.TIME_MONTH) plot_delay.plot_delay(df_arr_delay_list_by_month, df_arr_delay_by_state_list_by_month, "ARR_DELAY", "US Domestic Airline Arrival Delay (Dest)")
def plot_dep_delay_by_airports_and_state_monthly(): """ This function will plot the average monthly departure delay for airports and states :return: """ df_dep_delay_list_by_month, df_dep_delay_by_state_list_by_month = data_prepare( constants.TARGET_DELAY, constants.DIRECTION_DEPARTURE, constants.TIME_MONTH) plot_delay.plot_delay(df_dep_delay_list_by_month, df_dep_delay_by_state_list_by_month, "DEP_DELAY", "US Domestic Airline Departure Delay (Origin)")
def plot_arr_delay_by_airports_and_state_yearly(): """ This function plots the average yearly arrival delay for airports and states :return: """ df_arr_delay_list_by_year, df_arr_delay_by_state_list_by_year = data_prepare( constants.TARGET_DELAY, constants.DIRECTION_ARRIVAL, constants.TIME_YEAR) plot_delay.plot_delay(df_arr_delay_list_by_year, df_arr_delay_by_state_list_by_year, "ARR_DELAY", "US Domestic Airline ARR Delay (DEST)")
def plot_dep_count_by_airport_and_state_yearly(): """ This function plots the yearly departure flight count from 2009-2018 for different airports and states """ df_dep_count_list_by_year, df_dep_count_by_state_list_by_year = data_prepare( constants.TARGET_COUNT, constants.DIRECTION_DEPARTURE, constants.TIME_YEAR) plot_count.plot_count(df_dep_count_list_by_year, df_dep_count_by_state_list_by_year, "ORIGIN_COUNT", "US Domestic Airline Departure Count (Origin)")