numpy.vstack
Stack arrays in sequence vertically (row wise).
numpy.dstack
Stack arrays in sequence depth wise (along third axis).
Join a sequence of arrays along a new axis.
Stack arrays in sequence vertically (row wise) / Stack along first axis.
Stack arrays in sequence horizontally (column wise) / Stack along second axis.
Join a sequence of arrays along an existing axis.
Split array along third axis.
import numpy as np
a = np.array((1,2,3))
b = np.array((7,8,9))
c = np.dstack((a,b))
a1 = np.array([[1],[2],[3]])
b1 = np.array([[7],[8],[9]])
c1 = np.dstack((a1,b1))
d = np.vstack((a,b))
d1 = np.vstack((a1,b1))
更多数学原理小文请关注公众号:未名方略