"For each airlines find the month where the average departure time is the highest in the year." I have the table built with the airline name, month, and average departure time but I don't know how to select out what I want.
This line is giving you some trouble and is returning NA for any cancelled flight. So, if Delta cancels a flight in February, you have no February Delta data.