numpy.concatenate()

numpy.concatenate

numpy.concatenate((a1, a2, ...), axis=0)

Join a sequence of arrays along an existing axis.

Parameters:

a1, a2, ... : sequence of array_like

The arrays must have the same shape, except in the dimension corresponding to axis (the first, by default).

axis : int, optional

The axis along which the arrays will be joined. Default is 0.

Returns:

res : ndarray

The concatenated array.