Question: i have a question about python programming. please give me the correct answer. You are given a Python variable with the name rainfall. The variable

i have a question about python programming. please give me the correct answer.

i have a question about python programming. please give me the correct

You are given a Python variable with the name rainfall. The variable rainfall is a numpy array of shape (4,7). The entries of rainfall are: [[0.01, .21, 1.22, 1.18, 0.79, 0.02, 0.17], 0.13, .15, .22, 0., .21, 0.19, .23], .56, .18, 4.13, 3.57. .79, .82, 9.17] [0.67, 9.14, 4.22, 1.37, e.63, 0.24, 0.25]] The entry rainfall[w.d] (where w = 0,12.3 and d = 0,1, ,6) contains the amount of rainfall in day d of week w. For example, the amount of rainfall in day 5 in week 0 is stored in rainfal[0,5], which equals to 0.02. You want to use numpy to determine the day (which can take the value of o. 1.2.3.4. 5 or 6) that has the largest value of mean rainfall over 4 weeks. For the array shown above, the expected answer is 2. Which of the following statement can you use? Note: There is only one correct answer O numpy.max(numpy.mean(rainfall,axis-0) numpy.max(numpy.mean(rainfall, axis-1) O numpy.argmax(numpy.mean(rainfall,axis-o)) O numpy.argmax(numpy.mean(rainfall axis 1))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!