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