

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Name:__________________________ Signed:____________________________________ By signing above you indicate agreement with the UNC Honor Code Pledge, that you have not given or received unauthorized assistance on this exam. There are a total of 100 points to do in 75 minutes. I have included a brief list of functions you might find useful as reminders on the last page. You should not need a calculator but you may use one if you wish. You may not use your cell phone or computer. Write your answers in the areas provided. You can use the margins or backs of pages as scratch paper. I have additional scratch paper if you need it. Showing work may help you get partial credit.
E) What was the lowest mean temperature? F) Suppose the instruments malfunctioned on a few days so that no reading was available. These entries in the array have the value NaN (Not a Number). Give an expression that will replace each NaN value with the average of the value for the day before and the day after the failure. (don't worry about edge cases at the beginning and end of the data). Hint: Use np.isnan and np.where.