NumPy > Flatten array

Name
Code
Output
array = numpy.random.randint(5, size=(2, 3))
print ("array \n",array)
result = array.ravel()
print ("flatened array \n",result)
array 
 [[4 4 1]
 [0 0 3]]
flatened array 
 [4 4 1 0 0 3]