0
x.shape = (256,1) 
y.shape = (256,1)

how should I command?, so that it returns,

output.shape = (256,2).

Simple question, but I am unable to solve. please help.

2

1 Answer 1

0

I'm using for this append option:

import numpy as np

matrix_1 = np.random.uniform(1, 10, (256, 1))
matrix_2 = np.random.uniform(1, 10, (256, 1))

print(matrix_1.shape)
print(matrix_2.shape)
print('-------------')

out_matrix = np.append(matrix_1, matrix_2, axis=1)
print(out_matrix.shape)
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.