Question: What is the purpose of np . array in the below code? a = [ 6 . 1 , 5 . 8 , 5 .

What is the purpose of np.array in the below code?
a=[6.1,5.8,5.97,5.43,7.34,8.67,6.55,3.66,2.31,6.84]
b=[2.5,3.19,2.26,3.17,8.17,2.76,5.22,9.82,3.95,8.38]
npa=np.array(a)
npb=np.array(b)
To measure the length of two lists
To move data from 'a' to 'b'
Convert the lists 'a' and 'b' to a NumPy array
to change the code from wide to long
 What is the purpose of np.array in the below code? a=[6.1,5.8,5.97,5.43,7.34,8.67,6.55,3.66,2.31,6.84]

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!