The first argument of np.concatenate
is supposed to be a sequence of objects (think vectors or matrices). The second argument is the axis along which the concatenation is to be performed. See help(np.concatenate)
for the full docstring.
For your command to be valid, the objects in the row
sequence must have at least a 0th and a 1st dimension. This would typically be a matrix, but the name row
is suggestive of a set of row vectors that have dimension [0, d]
.
If you concatenate n
vectors of shape [0, d]
along the 1st dimension, this will result in an object of shape [0, n*d]
. Which is a very long row vector.
sequence
,(a1, a2, ...)
. That's one list, tuple, or even array (treated as a list of arrays)