Home / Expert Answers / Computer Science / numpy-python-nbsp-how-do-i-add-a-1d-array-as-a-column-to-a-2d-array-the-1d-array-is-49-and-t-pa176

(Solved): NUMPY python  How do I add a 1d array as a column to a 2d array? The 1d array is (49, ) and t ...



NUMPY python 

How do I add a 1d array as a column to a 2d array?

The 1d array is (49, ) and the 2d array is (50,4)

ex:

x=[1,1,1,1,

1,1,1,1,

1,1,1,1,

1,1,1,1]

y=[2,

2,

2]

and i need to output z as

z = [1,1,1,1,2,

1,1,1,1,2,

1,1,1,1,2,

1,1,1,1 ]



We have an Answer from Expert

View Expert Answer

Expert Answer


changing 1d array to 2d array is cake walk l
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe