×
×
Correct!
Use the correct NumPy method to change the shape of an array from 1-D to 2-D.
arr = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])
newarr = arr.@(7)(4, 3)
arr = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])
newarr = arr.reshape(4, 3)
Not CorrectClick here to try again. Correct! |
This will reset the score of ALL 23 exercises.
Are you sure you want to continue?