举例子:构建两个数组
a = [[1,2,3],[4,5,6]]
b = [[1,1,1],[2,2,2]]
1、数组纵向合并
c = np.vstack((a,b))
2、数组横向合并
d = np.hstack((a,b))
3、数组行列转置
c = np.vstack((a,b)).transpose()
标签:转置,合并,vstack,行列,数组,np,numpy
来源: https://blog.csdn.net/lzz781699880/article/details/95610466