Question: data [ : , 0 ] = np . random.randint ( 0 , 1 0 , 2 0 ) will fill only the first entry

data[ : ,0]= np.random.randint(0,10,20)
will fill
only the first entry (position 0) of the array named data.
all entries in a 1D array named data.
nothing. There is a syntax error in this line of code.
row 0 of a 2D array named data.
column 0 of a 2D array named data.
data [ : , 0 ] = np . random.randint ( 0 , 1 0 ,

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 Programming Questions!