'adding elements to a numpy array and reshape it

I have the following numpy array

a= np.array([1,1])

I have the two elements

b= [2, 2]
c= [3, 3]

I would like to add those elements b and c, so that my output seems like this

a= [[1, 1],
    [2, 2].
    [3, 3]], #shape=(3,2) 

which numpy function should i use? thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source