I am trying to append column for the following arrays
train = np.append(train_data, train_labels, axis=1)
(60000, 784)
(60000,)
And I get the error
ValueError: all the input arrays must have same number of dimensions
I cannot understand what the issue is... I need output of
(60000, 785)
train_dataandtrain_labels?axis, np.append` is justnp.concatenate((arr, values), axis=axis). When usingconcatenatethe number of dimensions of the inputs has to match (in this case all must be 2d).