Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i have a question about python programming. it's about how to use numpy to perform data analysis. please help me with this You are given

i have a question about python programming.

it's about how to use numpy to perform data analysis. please help me with this

image text in transcribed

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 I 0.01, 0.21, 1.22, 1.18, 0.79, .82, 0.17], 0.13, 0.15, 0.22, 0.06, 0.21, 0.19, 0.23], 0.56, 0.18, 4.13, 3.57, 0.79, 0.02, 0.17] 0.67, 0.14, 4.22, 1.37, 0.63, 0.24, 0.25]] The entry rainfall[w.d] (where w = 0,1,2,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 rainfall[0,5], which equals to 0.02 You want to use numpy to determine the day (which can take the value of 0, 1, 2,3, 4, 5 or 6) that has the least value of mean rainfall over 4 weeks. For the array shown above, the expected answer is 5 Which of the following statement can you use? Note: There is only one correct answer O numpy.min(numpy.mean(rainfall,axis-0)) O numpy.min(numpy.mean(rainfall,axis-1)) O numpy.argmin(numpy.mean(rainfall,axis 0)) numpy.argmin(numpy.mean(rainfall, axis-1)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions