Python Merging two 1 dimensional arrays into one 2 dimensional array using Numpy

Category > PYTHON || Published on : Wednesday, February 10, 2021 || Views: 68 || Merging two 1 dimensional arrays into one 2 dimensional array using Numpy


Here Pawan Kumar will explain how to Python Merging two 1 dimensional arrays into one 2 dimensional array using Numpy

import numpy as np

a = np.array([1,2,3,4,5,6])
b = np.array([100,200,300,400,500,600])

result = np.dstack((a,b))
print(result)