How to concatenate numpy array?
I want to concatenate all numpy arrays.
for example, there are some numpy array as below
a = numpy.array([1,2,3])
b = numpy.array([4,5,6])
c = numpy.array([7,8,9])
To concatenate them all.
we need a extra empty variable.
tot = numpy.concatenate(tot, a)
tot = numpy.concatenate(tot, b)
tot = numpy.concatenate(tot, c)
how to declare tot empty variable ? (if there are too many arrays?)
[[1,2,3],[4,5,6],[7,8,9]]or[1,2,3,4,5...].?concatenateaccepts a list of arrays - but pay close attention to your dimensions.