You have already completed these exercises!
Do you want to take them again?
You completed the NUMPY Reshape Arrays Exercises from W3Schools.com
Share on:
Consider the following code:import numpy as nparr = np.array([[1, 2, 3], [4, 5, 6]])newarr = arr.reshape(6)print(newarr)What will be the printed result?
import numpy as nparr = np.array([[1, 2, 3], [4, 5, 6]])newarr = arr.reshape(6)print(newarr)
[[][1 2 3 4 5 6]
[[1 2 3 4 5 6]]]
[1 2 3 4 5 6]