Professional Documents
Culture Documents
Assignment 2 PROG - Winter 2022
Assignment 2 PROG - Winter 2022
Fundamentals of Programming
PROG 8490
Instructions:
1-) Complete each question in Jupyter notebook in the Assignment 2 submission box by the due date
(Save your code file in Jupyter notebook and upload the saved file )
2-) If there is any question that requires you to explain, you can do so in Python by simply typing in the
code editor as a comment.
3-) This is an individual assignment. You can take help from your lectures, textbook, internet, and class
notes, etc. but straight copy-paste of code from external sources is strictly prohibited.
4-) All questions are mandatory and carry equal marks.
Exercise:
Using dataset flights from nycflights13 and pandas package functions complete the following questions,
Question 2
1. Sort flights to find the most delayed flights (arrival delays) .
2. Which flights travelled the farthest? Which travelled the shortest? Answer by sorting the flights
dataset is descending order of flight distance.
Question 3
1. Create a new variable and call it Computed_Speed. This new variable will show flight speed in
distance/minute unit.