Question: Question 1 . 1 ( 1 2 % credit ) It looks like the departure and arrival in flights were read in as floating -
Question credit
It looks like the departure and arrival in flights were read in as floatingpoint numbers. Write two functions, extracthour and extractmins that converts military time to hours and minutes, respectively. Hint: You may want to use modular arithmetic and integer division. Keep in mind that the data has not been cleaned and you need to check whether the extracted values are valid. Replace all the invalid values with NaN. The documentation for pandas.Series.where provided here should be helpful.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
