#PYTHON PROGRAM TO RESHAPE 1D ARRAY TO 2D ARRAY
import numpy as np
my_array_1d = np.array([1,2,3,4,5,6])
print("1 Dimensional Array:")
print(my_array_1d)
my_array_2d =np.reshape(my_array_1d,(3,2))
print("2 Dimensional Array:")
print(my_array_2d)
On this page of the site you can watch the video online PYTHON PROGRAM 2 RESHAPE 1D ARRAY 2 2D ARRAY with a duration of hours minute second in good quality, which was uploaded by the user PythonEnthusiasts 01 January 1970, share the link with friends and acquaintances, this video has already been watched 93 times on youtube and it was liked by 2 viewers. Enjoy your viewing!